Object
When set to true, the user will be notified by email when a backup process raises an exception before finishing
When set to true, the user will be notified by email when a backup process ends without raising any exceptions
When set to true, the user will be notified by email when a backup process is successful, but has warnings
When set to true, the user will be notified by email when a backup process raises an exception before finishing
When set to true, the user will be notified by email when a backup process ends without raising any exceptions
This method is called from an ensure block in Model#perform! and must not raise any exceptions. However, each Notifier’s notify! method should raise an exception if the request fails so it may be retried.
# File lib/backup/notifier/base.rb, line 54 def perform! status = case model.exit_status when 0 :success if notify_on_success? when 1 :warning if notify_on_success? || notify_on_warning? else :failure if notify_on_failure? end if status Logger.info "Sending notification using #{ notifier_name }..." with_retries { notify!(status) } end rescue Exception => err Logger.error Error.wrap(err, "#{ notifier_name } Failed!") end
Generated with the Darkfish Rdoc Generator 2.