class Guard::Dsl

def notification(notifier, options = {})

Parameters:
  • options (Hash) -- the notification library options
  • notifier (Symbol, String) -- the name of the notifier to use

Other tags:
    See: Guard::Notifier - for available notifier and its options.

Other tags:
    Example: Define multiple notifications -
def notification(notifier, options = {})
  ::Guard::Notifier.add_notification(notifier.to_sym, options, false)
end