Sha256: 5db57221a003ace693eddcec94851b6a445481e60b06a10f88bac728d8412266
Contents?: true
Size: 793 Bytes
Versions: 24
Compression:
Stored size: 793 Bytes
Contents
# encoding: utf-8 module Backup module Notifier class Base include Backup::Configuration::Helpers ## # When set to true, the user will be notified by email # when a backup process ends without raising any exceptions attr_accessor :on_success alias :notify_on_success? :on_success ## # When set to true, the user will be notified by email # when a backup process raises an exception before finishing attr_accessor :on_failure alias :notify_on_failure? :on_failure ## # Logs a message to the console and log file to inform # the client that Backup is notifying about the process def log! Logger.message "#{ self.class } started notifying about the process." end end end end
Version data entries
24 entries across 24 versions & 3 rubygems