Method: Chef::RunContext#notifies_delayed
- Defined in:
- lib/chef/run_context.rb
#notifies_delayed(notification) ⇒ Object
Adds a delayed notification to the delayed_notification_collection.
307 308 309 310 311 312 313 314 315 |
# File 'lib/chef/run_context.rb', line 307 def notifies_delayed(notification) # Note for the future, notification.notifying_resource may be an instance # of Chef::Resource::UnresolvedSubscribes when calling {Resource#subscribes} # with a string value. if unified_mode && updated_resources.include?(notification..declared_key) add_delayed_action(notification) end delayed_notification_collection[notification..declared_key] << notification end |