summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2016-02-04 12:34:00 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2016-02-04 12:34:00 -0800
commit38bc9915563c5eba534c7a07730baeddb84ae79c (patch)
tree97b95a9a7560acad17892ea05d281412ac437ceb
parent2c71be878c318116adbf406717bf99ecaebe05d7 (diff)
downloadchef-zero-lcg/metadata-gem.tar.gz
fix necessary for metadata gemlcg/metadata-gem
there's a Kernel#gem method in ruby because someone thought that would be a great idea, kind of messes up method_missing when the method isn't missing...
-rw-r--r--lib/chef_zero/chef_data/cookbook_data.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/chef_zero/chef_data/cookbook_data.rb b/lib/chef_zero/chef_data/cookbook_data.rb
index aed625b..e690fde 100644
--- a/lib/chef_zero/chef_data/cookbook_data.rb
+++ b/lib/chef_zero/chef_data/cookbook_data.rb
@@ -108,6 +108,11 @@ module ChefZero
cookbook_arg(:replacing, cookbook, version_constraints)
end
+ def gem(*opts)
+ self[:gems] ||= []
+ self[:gems] << opts
+ end
+
def recipe(recipe, description)
self[:recipes][recipe] = description
end