class Guard::Notifier::GrowlNotify

def self._register!(options)

Returns:
  • (Boolean) - whether or not GrowlNotify is available

Other tags:
    Private: -
def self._register!(options)
  if ::GrowlNotify.application_name != 'Guard'
    ::GrowlNotify.config do |c|
      c.notifications         = %w(success pending failed notify)
      c.default_notifications = 'notify'
      c.application_name      = 'Guard'
    end
  end
  true
rescue ::GrowlNotify::GrowlNotFound
  unless options[:silent]
    ::Guard::UI.error 'Please install Growl from http://growl.info'
  end
  false
end