diff options
author | John Keiser <john@johnkeiser.com> | 2013-05-28 12:57:04 -0700 |
---|---|---|
committer | John Keiser <john@johnkeiser.com> | 2013-05-28 12:57:04 -0700 |
commit | 7dbde11ea5d97fe29e9c824116bbcf7f2a7b7b0c (patch) | |
tree | 7a81854eb8e9bff9a5d9969a3b587e1229084466 | |
parent | f8f1892a254332c217e130e24de5b4d285bbed89 (diff) | |
parent | f0d994199d9182af58d25a7af8fcd928984b6978 (diff) | |
download | chef-zero-7dbde11ea5d97fe29e9c824116bbcf7f2a7b7b0c.tar.gz |
Merge pull request #10 from reset/undefined-method-list
fix undefined method .list on CookbookData
-rw-r--r-- | lib/chef_zero/cookbook_data.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef_zero/cookbook_data.rb b/lib/chef_zero/cookbook_data.rb index 5d99222..298a9a9 100644 --- a/lib/chef_zero/cookbook_data.rb +++ b/lib/chef_zero/cookbook_data.rb @@ -162,7 +162,7 @@ module ChefZero end end - def self.list_directory(directory) + def self.list(directory) if directory.is_a?(Hash) directory.keys else |