Method: ChefApply::Action::Base#notify

Defined in:
lib/chef_apply/action/base.rb

#notify(action, *args) ⇒ Object



137
138
139
140
141
# File 'lib/chef_apply/action/base.rb', line 137

def notify(action, *args)
  return if @notification_handler.nil?
  ChefApply::Log.debug("[#{self.class.name}] Action: #{action}, Action Data: #{args}")
  @notification_handler.call(action, args) if @notification_handler
end