summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThom May <thom@may.lt>2015-09-29 11:41:32 -0700
committerThom May <thom@may.lt>2015-09-29 11:41:32 -0700
commit20a10906633f3e79627c37a1e280bcc6bee3de64 (patch)
treeeab4ac8fc79cf4a4c369f700528ad68d880c922e
parent082791ddf732fec63744d085dd3a07348eee060c (diff)
parenta2981f12e04b275561e6c42b26f550e43eaa33ac (diff)
downloadchef-20a10906633f3e79627c37a1e280bcc6bee3de64.tar.gz
Merge pull request #3989 from chef/jk/api-private-resource-collection
Make resource_collection= @api private instead of deprecated
-rw-r--r--lib/chef/run_context.rb8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/chef/run_context.rb b/lib/chef/run_context.rb
index 0c8d3d1a48..205bb47448 100644
--- a/lib/chef/run_context.rb
+++ b/lib/chef/run_context.rb
@@ -528,15 +528,13 @@ ERROR_MESSAGE
attr_reader :loaded_attributes_hash
attr_reader :loaded_recipes_hash
+ # @api private
+ attr_writer :resource_collection
+
module Deprecated
###
# These need to be settable so deploy can run a resource_collection
# independent of any cookbooks via +recipe_eval+
- def resource_collection=(value)
- Chef.log_deprecation("Setting run_context.resource_collection will be removed in a future Chef. Use run_context.create_child to create a new RunContext instead.")
- @resource_collection = value
- end
-
def audits=(value)
Chef.log_deprecation("Setting run_context.audits will be removed in a future Chef. Use run_context.create_child to create a new RunContext instead.")
@audits = value