Method: Chef::RunContext#immediate_notifications

Defined in:
lib/chef/run_context.rb

#immediate_notifications(resource) ⇒ Array[Notification]

Get the list of immediate notifications sent by the given resource.

Returns:

  • (Array[Notification])


341
342
343
344
# File 'lib/chef/run_context.rb', line 341

def immediate_notifications(resource)
  key = resource.is_a?(String) ? resource : resource.declared_key
  immediate_notification_collection[key]
end