summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2020-04-03 17:01:40 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2020-04-03 17:01:40 -0700
commitb5dc6520fdf7a371f4add52734f88bcd0daf74bc (patch)
treedb1c0a8798d7b3544ba90e8cd7b695902f1bba6b
parent55251665bd38853466e63d8d649a744662e8884d (diff)
downloadchef-lcg/eager-load-libraries-option.tar.gz
fix accidental mangling of the glob patternlcg/eager-load-libraries-option
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
-rw-r--r--lib/chef/run_context/cookbook_compiler.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/run_context/cookbook_compiler.rb b/lib/chef/run_context/cookbook_compiler.rb
index 8e8c8c6e25..4dda6aeb2e 100644
--- a/lib/chef/run_context/cookbook_compiler.rb
+++ b/lib/chef/run_context/cookbook_compiler.rb
@@ -229,7 +229,7 @@ class Chef
raise
end
- def load_libraries_from_cookbook(cookbook_name, globs = "*/*.rb")
+ def load_libraries_from_cookbook(cookbook_name, globs = "**/*.rb")
each_file_in_cookbook_by_segment(cookbook_name, :libraries, globs) do |filename|
begin
logger.trace("Loading cookbook #{cookbook_name}'s library file: #{filename}")