diff options
author | Ranjib Dey <dey.ranjib@gmail.com> | 2015-06-26 12:38:36 -0700 |
---|---|---|
committer | Ranjib Dey <dey.ranjib@gmail.com> | 2015-06-26 12:38:36 -0700 |
commit | d8cf337e46a24082976ec579903d950f285f77b9 (patch) | |
tree | 5864afc74117eb422cc14c5c38fa62d96d2e6ff1 | |
parent | 7fd7d2f166ecf44d5b7214cef03fca08b5fc1685 (diff) | |
parent | c9b51939c4f35b2cbeb9bb3d33e6957c80eb1249 (diff) | |
download | chef-d8cf337e46a24082976ec579903d950f285f77b9.tar.gz |
Merge pull request #3587 from coderanger/patch-3
Fix deprecated setters.
-rw-r--r-- | lib/chef/run_context.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/chef/run_context.rb b/lib/chef/run_context.rb index f55d1740b1..b1113f594e 100644 --- a/lib/chef/run_context.rb +++ b/lib/chef/run_context.rb @@ -532,17 +532,24 @@ 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 end def immediate_notification_collection=(value) Chef::Log.deprecation("Setting run_context.immediate_notification_collection will be removed in a future Chef. Use run_context.create_child to create a new RunContext instead.") + @immediate_notification_collection = value end def delayed_notification_collection=(value) Chef::Log.deprecation("Setting run_context.delayed_notification_collection will be removed in a future Chef. Use run_context.create_child to create a new RunContext instead.") + @delayed_notification_collection = value end end prepend Deprecated |