class Notiffany::Notifier::TerminalNotifier

def _perform_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 _perform_notify(message, opts = {})
  title = [opts[:app_name], opts[:type].downcase.capitalize].join(" ")
  opts = {
    title: title
  }.merge(opts)
  opts[:message] = message
  opts[:title] ||= title
  opts.delete(:image)
  opts.delete(:app_name)
  ::TerminalNotifier::Guard.execute(false, opts)
end