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



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

def audits=(value)
  Chef.deprecated(:internal_api, "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



593
594
595
596
# File 'lib/chef/run_context.rb', line 593

def delayed_notification_collection=(value)
  Chef.deprecated(:internal_api, "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



588
589
590
591
# File 'lib/chef/run_context.rb', line 588

def immediate_notification_collection=(value)
  Chef.deprecated(:internal_api, "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