Method: Chef::RunContext#notifies_immediately
- Defined in:
- lib/chef/run_context.rb
#notifies_immediately(notification) ⇒ Object
Adds an immediate notification to the immediate_notification_collection.
295 296 297 298 299 300 |
# File 'lib/chef/run_context.rb', line 295 def notifies_immediately(notification) # Note for the future, notification.notifying_resource may be an instance # of Chef::Resource::UnresolvedSubscribes when calling {Resource#subscribes} # with a string value. immediate_notification_collection[notification..declared_key] << notification end |