Method: Chef::RunContext#reverse_immediate_notifications
- Defined in:
- lib/chef/run_context.rb
#reverse_immediate_notifications(resource) ⇒ Array[Notification]
Get the list of immediate notifications pending to the given resource
350 351 352 353 354 355 356 357 |
# File 'lib/chef/run_context.rb', line 350 def reverse_immediate_notifications(resource) immediate_notification_collection.map do |k, v| v.select do |n| (n.resource.is_a?(String) && n.resource == resource.declared_key) || n.resource == resource end end.flatten end |