diff options
-rw-r--r-- | lib/chef_zero/chef_data/cookbook_data.rb | 5 |
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 |