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



599
600
601
602
# File 'lib/chef/run_context.rb', line 599

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



609
610
611
612
# File 'lib/chef/run_context.rb', line 609

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



604
605
606
607
# File 'lib/chef/run_context.rb', line 604

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