diff options
author | danielsdeleo <dan@opscode.com> | 2014-01-13 11:25:23 -0800 |
---|---|---|
committer | danielsdeleo <dan@opscode.com> | 2014-01-14 17:51:37 -0800 |
commit | 1a9a9bc334e464261be99a8452f5cefb6e25bae1 (patch) | |
tree | fcfaa6e0e2b12e409559d6eccd4f5b085904c165 /lib/chef/policy_builder.rb | |
parent | 848b59d0fd711eb4304999c2b7a1c4afd39060dc (diff) | |
download | chef-1a9a9bc334e464261be99a8452f5cefb6e25bae1.tar.gz |
Add tests for public api to PolicyBuilder
Diffstat (limited to 'lib/chef/policy_builder.rb')
-rw-r--r-- | lib/chef/policy_builder.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/chef/policy_builder.rb b/lib/chef/policy_builder.rb index 921271a738..37e7f8f3fa 100644 --- a/lib/chef/policy_builder.rb +++ b/lib/chef/policy_builder.rb @@ -51,6 +51,7 @@ class Chef attr_reader :override_runlist attr_reader :original_runlist attr_reader :run_context + attr_reader :run_list_expansion def initialize(node_name, ohai_data, json_attribs, override_runlist, events) @node_name = node_name @@ -61,6 +62,7 @@ class Chef @node = nil @original_runlist = nil + @run_list_expansion = nil end def setup_run_context(specific_recipes=nil) @@ -71,7 +73,7 @@ class Chef cookbook_collection = Chef::CookbookCollection.new(cl) run_context = Chef::RunContext.new(node, cookbook_collection, @events) else - Chef::Cookbook::FileVendor.on_create { |manifest| Chef::Cookbook::RemoteFileVendor.new(manifest, rest) } + Chef::Cookbook::FileVendor.on_create { |manifest| Chef::Cookbook::RemoteFileVendor.new(manifest, api_service) } cookbook_hash = sync_cookbooks cookbook_collection = Chef::CookbookCollection.new(cookbook_hash) run_context = Chef::RunContext.new(node, cookbook_collection, @events) |