summaryrefslogtreecommitdiff
path: root/lib/chef/run_context
diff options
context:
space:
mode:
authorThom May <thom@chef.io>2016-02-23 09:52:20 +0000
committerThom May <thom@chef.io>2016-03-03 09:46:30 +0000
commitb62e6ae14ddd9c60035f4ec314f4c6d0ab47777e (patch)
treeacd055045c217f0650e96c02d2744832028c1dcc /lib/chef/run_context
parenta4d98365c1d68d7a24fba62783538951d2bbd2e0 (diff)
downloadchef-b62e6ae14ddd9c60035f4ec314f4c6d0ab47777e.tar.gz
Ensure that chef-zero loads libraries recursivelytm/zero_deep_libraries
Diffstat (limited to 'lib/chef/run_context')
-rw-r--r--lib/chef/run_context/cookbook_compiler.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/chef/run_context/cookbook_compiler.rb b/lib/chef/run_context/cookbook_compiler.rb
index e8311a18a6..bdf3a1251c 100644
--- a/lib/chef/run_context/cookbook_compiler.rb
+++ b/lib/chef/run_context/cookbook_compiler.rb
@@ -186,6 +186,7 @@ class Chef
def load_libraries_from_cookbook(cookbook_name)
files_in_cookbook_by_segment(cookbook_name, :libraries).each do |filename|
+ next unless File.extname(filename) == ".rb"
begin
Chef::Log.debug("Loading cookbook #{cookbook_name}'s library file: #{filename}")
Kernel.load(filename)