lib/guard/notifier.rb
# Add a notification library to be used.
#
# @param [Symbol] name the name of the notifier to use
# @param [Boolean] silent disable any error message
# @param [Hash] options the notifier options
# @return [Boolean] if the notification could be added
#
Add a notification library to be used.
Add a notification library to be used .
def add_notification(name, options = { }, silent = false)
      return turn_off if name == :off
      notifier = get_notifier_module(name)
      if notifier && notifier.available?(silent, options)
        self.notifications = notifications << { :name => name, :options => options }
        true
      else
        false
      end
    end
def add_notification ( name , options = { } , silent = false ) return turn_off if name == :off notifier = get_notifier_module ( name ) if notifier && notifier . available? ( silent , options ) self . notifications = notifications << { :name => name , :options => options } true else false end end
Add a notification library to be used.
Add a notification library to be used .
if the notification could be added
if the notification could be added
Boolean
name
options
silent
options the notifier options
options the notifier options