diff options
author | Noah Kantrowitz <noah@coderanger.net> | 2015-09-27 15:48:42 -0700 |
---|---|---|
committer | Noah Kantrowitz <noah@coderanger.net> | 2015-09-27 15:48:42 -0700 |
commit | a9fee9c87e4c19d96640e8b7d13efde99cc15495 (patch) | |
tree | f9eff54e657df2d06ae22181040b5920c58ef5c7 | |
parent | 8d32fdd4377476a9f7dc36a864ccdaa17c32b3a1 (diff) | |
download | chef-resource-collection-equals.tar.gz |
Undeprecate RunContext#resource_collection=.resource-collection-equals
I use this in Poise and would like to make sure it continues to be a
supported API. This is required because I use subcontexts with different
semantics from Chef's isolated ones. The alternative to un-deprecating
this would be to allow passing in an alternate factory other than
Chef::ResourceCollection.new().
-rw-r--r-- | lib/chef/run_context.rb | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/chef/run_context.rb b/lib/chef/run_context.rb index 0c8d3d1a48..7b5710ff34 100644 --- a/lib/chef/run_context.rb +++ b/lib/chef/run_context.rb @@ -92,7 +92,7 @@ class Chef # # @see CookbookCompiler # - attr_reader :resource_collection + attr_accessor :resource_collection # # The list of control groups to execute during the audit phase @@ -532,11 +532,6 @@ ERROR_MESSAGE ### # 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 |