module Guard::Notifier::Growl
def available?(silent = false)
-
(Boolean)- the availability status
Parameters:
-
silent(Boolean) -- true if no error messages should be shown
def available?(silent = false) if RbConfig::CONFIG['host_os'] =~ /darwin/ require 'growl' if ::Growl.installed? true else ::Guard::UI.error "Please install the 'growlnotify' executable." unless silent false end else ::Guard::UI.error 'The :growl notifier runs only on Mac OS X.' unless silent false end rescue LoadError, NameError ::Guard::UI.error "Please add \"gem 'growl'\" to your Gemfile and run Guard with \"bundle exec\"." unless silent false end