class Guard::Notifier::TerminalNotifier

def notify(message, opts = {})

Options Hash: (**opts)
  • open (String) -- some url or file
  • activate (String) -- an app bundle
  • execute (String) -- a command
  • app_name (String) -- name of your app
  • image (String) -- the path to the notification image (ignored)
  • title (String) -- the notification title
  • type (String) -- the notification type. Either 'success',

Parameters:
  • opts (Hash) -- additional notification library options
  • message (String) -- the notification message body
def notify(message, opts = {})
  title = opts[:title] || options[:title]
  super
  self.class.require_gem_safely
  opts.delete(:image)
  opts[:title] = title || [opts.delete(:app_name) { 'Guard' }, opts[:type].downcase.capitalize].join(' ')
  ::TerminalNotifier::Guard.execute(false, opts.merge(message: message))
end