diff options
author | Adam Jacob <adam@hjksolutions.com> | 2008-03-12 09:57:34 -0700 |
---|---|---|
committer | Adam Jacob <adam@hjksolutions.com> | 2008-03-12 09:57:34 -0700 |
commit | 8785608a3ff644e4835045396913f0f137706d3c (patch) | |
tree | 8509082bf9b21522f984ccf5a042a9203006a140 /lib/chef/recipe.rb | |
parent | 779a6a5cfba68e95c8a9ed8777d4ff3bf12d9c85 (diff) | |
download | chef-8785608a3ff644e4835045396913f0f137706d3c.tar.gz |
Adding cookbook support, updating rcov coverage
Diffstat (limited to 'lib/chef/recipe.rb')
-rw-r--r-- | lib/chef/recipe.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/chef/recipe.rb b/lib/chef/recipe.rb index 17d14ef0bf..81fb979de2 100644 --- a/lib/chef/recipe.rb +++ b/lib/chef/recipe.rb @@ -25,11 +25,11 @@ class Chef include Chef::Mixin::FromFile - attr_accessor :module_name, :recipe_name, :recipe, :node, :collection, + attr_accessor :cookbook_name, :recipe_name, :recipe, :node, :collection, :definitions, :config, :params - def initialize(module_name, recipe_name, node, collection=nil, definitions=nil, config=nil) - @module_name = module_name + def initialize(cookbook_name, recipe_name, node, collection=nil, definitions=nil, config=nil) + @cookbook_name = cookbook_name @recipe_name = recipe_name @node = node if collection @@ -62,7 +62,7 @@ class Chef if @definitions.has_key?(method_symbol) new_def = @definitions[method_symbol].dup new_def.instance_eval(&block) - new_recipe = Chef::Recipe.new(@module_name, @recipe_name, @node, @collection, @definitions, @config) + new_recipe = Chef::Recipe.new(@cookbook_name, @recipe_name, @node, @collection, @definitions, @config) new_recipe.params = new_def.params new_recipe.instance_eval(&new_def.recipe) else |