class Guard::Dsl

def notification(notifier, opts = {})

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

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

Other tags:
    Example: Define multiple notifications -
def notification(notifier, opts = {})
  Guard.state.session.guardfile_notification = { notifier.to_sym => opts }
end