diff options
author | danielsdeleo <dan@opscode.com> | 2012-11-29 16:28:40 -0800 |
---|---|---|
committer | danielsdeleo <dan@opscode.com> | 2012-11-30 14:51:48 -0800 |
commit | 549d048726dd27d88024334d31a85bc27bc527d4 (patch) | |
tree | 570e6b89b6042006010f0938065fe6eff9b90120 /lib/chef/run_context.rb | |
parent | d638ce43c7cf2208ff0db16db695212b7609b481 (diff) | |
download | chef-549d048726dd27d88024334d31a85bc27bc527d4.tar.gz |
[CHEF-3376] move recipe compilation to CookbookCompiler
Diffstat (limited to 'lib/chef/run_context.rb')
-rw-r--r-- | lib/chef/run_context.rb | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/lib/chef/run_context.rb b/lib/chef/run_context.rb index c9aea18a13..b5d4f1fe48 100644 --- a/lib/chef/run_context.rb +++ b/lib/chef/run_context.rb @@ -64,27 +64,6 @@ class Chef def load(run_list_expansion) compiler = CookbookCompiler.new(self, run_list_expansion, events) compiler.compile - - @events.recipe_load_start(run_list_expansion.recipes.size) - run_list_expansion.recipes.each do |recipe| - begin - include_recipe(recipe) - rescue Chef::Exceptions::RecipeNotFound => e - @events.recipe_not_found(e) - raise - rescue Exception => e - path = resolve_recipe(recipe) - @events.recipe_file_load_failed(path, e) - raise - end - end - @events.recipe_load_complete - end - - def resolve_recipe(recipe_name) - cookbook_name, recipe_short_name = Chef::Recipe.parse_recipe_name(recipe_name) - cookbook = cookbook_collection[cookbook_name] - cookbook.recipe_filenames_by_name[recipe_short_name] end # Looks up an attribute file given the +cookbook_name+ and |