Skip to content

Instantly share code, notes, and snippets.

@tboerger
Created April 30, 2014 13:17
Show Gist options
  • Save tboerger/e7133e2a3dcd3a737904 to your computer and use it in GitHub Desktop.
Save tboerger/e7133e2a3dcd3a737904 to your computer and use it in GitHub Desktop.
From 77286c33e8767a935af27e0681d1ea02d47c7d4f Mon Sep 17 00:00:00 2001
From: miah <[email protected]>
Date: Tue, 14 May 2013 22:34:53 -0700
Subject: [PATCH] Load the libraries directory recursively.
---
lib/chef/cookbook/cookbook_version_loader.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/chef/cookbook/cookbook_version_loader.rb b/lib/chef/cookbook/cookbook_version_loader.rb
index e98da77..df9357a 100644
--- a/lib/chef/cookbook/cookbook_version_loader.rb
+++ b/lib/chef/cookbook/cookbook_version_loader.rb
@@ -47,7 +47,7 @@ def load_cookbooks
load_as(:attribute_filenames, 'attributes', '*.rb')
load_as(:definition_filenames, 'definitions', '*.rb')
load_as(:recipe_filenames, 'recipes', '*.rb')
- load_as(:library_filenames, 'libraries', '*.rb')
+ load_recursively_as(:library_filenames, 'libraries', '*.rb')
load_recursively_as(:template_filenames, "templates", "*")
load_recursively_as(:file_filenames, "files", "*")
load_recursively_as(:resource_filenames, "resources", "*.rb")
--
1.9.rc2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment