class Guard::Notifier::Growl


notification :growl, sticky: true, host: ‘192.168.1.5’, password: ‘secret’
@example Add the ‘:growl_notify` notifier with configuration options to your `Guardfile`
notification :growl
@example Add the `:growl` notifier to your `Guardfile`
end
gem ’growl’
group :development
@example Add the ‘growl` gem to your `Gemfile`
brew install growlnotify
@example Install `growlnotify` with Homebrew
notifiers if you want to customize each notification type in Growl.
Guard notifications in the Growl preferences. Use the :gntp or :growl_notify
Sending notifications with this notifier will not show the different<br><br>(mxcl.github.com/homebrew/).
The `growlnotify` executable must be installed manually or by using<br><br>executable.<br>(growl.info) through the [GrowlNotify](growl.info/downloads)
This gem is available for OS X and sends system notifications to
System notifications using the [growl](github.com/visionmedia/growl) gem.

def self._register!(opts)

Returns:
  • (Boolean) - whether or not Growl is installed

Other tags:
    Private: -
def self._register!(opts)
  if ::Growl.installed?
    true
  else
    unless opts[:silent]
      ::Guard::UI.error "Please install the 'growlnotify' executable (available by installing the 'growl' gem)."
    end
    false
  end
end

def self.available?(opts = {})

def self.available?(opts = {})
  super and require_gem_safely(opts) and _register!(opts)
end

def self.supported_hosts

def self.supported_hosts
  %w[darwin]
end

def notify(message, opts = {})

Options Hash: (**opts)
  • password (String) -- the password used for remote
  • host (String) -- the hostname or IP address to which to
  • priority (String, Integer) -- specify an int or named key
  • sticky (Boolean) -- make the notification sticky
  • image (String) -- the path to the notification image
  • 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 = {})
  super
  opts.delete(:type)
  self.class.require_gem_safely
  opts = DEFAULTS.merge(opts).merge(name: 'Guard')
  ::Growl.notify(message, opts)
end