Module: Chef::RunContext::Deprecated

Included in:
Chef::RunContext
Defined in:
lib/chef/run_context.rb

Instance Method Summary collapse

Instance Method Details

#audits=(value) ⇒ Object

These need to be settable so deploy can run a resource_collection independent of any cookbooks via recipe_eval



572
573
574
575
# File 'lib/chef/run_context.rb', line 572

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

#delayed_notification_collection=(value) ⇒ Object



582
583
584
585
# File 'lib/chef/run_context.rb', line 582

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

#immediate_notification_collection=(value) ⇒ Object



577
578
579
580
# File 'lib/chef/run_context.rb', line 577

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