summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2015-05-07 12:40:01 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2015-05-18 15:37:41 -0700
commit5200bbe6c92ffd09d0336531a4ea3c3af9215e5e (patch)
treefc6fb35eac362800138f560befc3303abbbfd662
parentdb62393671925bd778193c3ed8b2af49ccbb63a4 (diff)
downloadchef-5200bbe6c92ffd09d0336531a4ea3c3af9215e5e.tar.gz
rename consume_cookbook_collection
-rw-r--r--lib/chef/node.rb2
-rw-r--r--lib/chef/run_context.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/node.rb b/lib/chef/node.rb
index 617d2bab2f..d5078371c5 100644
--- a/lib/chef/node.rb
+++ b/lib/chef/node.rb
@@ -79,7 +79,7 @@ class Chef
# after the run_context has been set on the node, go through the cookbook_collection
# and setup the node[:cookbooks] attribute so that it is published in the node object
- def consume_cookbook_collection
+ def set_cookbook_attribute
return unless run_context.cookbook_collection
run_context.cookbook_collection.each do |cookbook_name, cookbook|
automatic_attrs[:cookbooks][cookbook_name][:version] = cookbook.version
diff --git a/lib/chef/run_context.rb b/lib/chef/run_context.rb
index 98cbc1a47c..44b05f0cc0 100644
--- a/lib/chef/run_context.rb
+++ b/lib/chef/run_context.rb
@@ -86,7 +86,7 @@ class Chef
@reboot_info = {}
@node.run_context = self
- @node.consume_cookbook_collection
+ @node.set_cookbook_attribute
@cookbook_compiler = nil
end