class Notiffany::Notifier::TerminalNotifier

to the OS X notification center.
This gem is available for OS X 10.8 Mountain Lion and sends notifications<br><br>gem.<br><br>(github.com/Springest/terminal-notifier-guard)
System notifications using the

def _check_available(_opts = {})

def _check_available(_opts = {})
  return if ::TerminalNotifier::Guard.available?
  fail UnavailableError, ERROR_ONLY_OSX10
end

def _gem_name

def _gem_name
  "terminal-notifier-guard"
end

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

def _supported_hosts

def _supported_hosts
  %w(darwin)
end