diff options
author | danielsdeleo <dan@opscode.com> | 2012-11-29 18:23:31 -0800 |
---|---|---|
committer | danielsdeleo <dan@opscode.com> | 2012-11-30 14:51:48 -0800 |
commit | d95b6501fcc2f5038c222da8d0efabf5e34f2b96 (patch) | |
tree | 0985e32689b28c300e2f598cc6df6027501a4b68 /lib/chef/run_context | |
parent | d6f673118b60c7425e213212d48ddb5a5f89fefe (diff) | |
download | chef-d95b6501fcc2f5038c222da8d0efabf5e34f2b96.tar.gz |
[CHEF-3376] remove redundant attr_accessor
Diffstat (limited to 'lib/chef/run_context')
-rw-r--r-- | lib/chef/run_context/cookbook_compiler.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/chef/run_context/cookbook_compiler.rb b/lib/chef/run_context/cookbook_compiler.rb index 7942d189ac..12e45ca664 100644 --- a/lib/chef/run_context/cookbook_compiler.rb +++ b/lib/chef/run_context/cookbook_compiler.rb @@ -31,10 +31,6 @@ class Chef attr_reader :events attr_reader :run_list_expansion - # Resource Definitions from the compiled cookbooks. This is populated by - # calling #compile_resource_definitions (which is called by #compile) - attr_reader :definitions - def initialize(run_context, run_list_expansion, events) @run_context = run_context @events = events @@ -42,14 +38,18 @@ class Chef @cookbook_order = nil end + # Chef::Node object for the current run. def node @run_context.node end + # Chef::CookbookCollection object for the current run def cookbook_collection @run_context.cookbook_collection end + # Resource Definitions from the compiled cookbooks. This is populated by + # calling #compile_resource_definitions (which is called by #compile) def definitions @run_context.definitions end |