Class: Boxafe::Notifier::Growl
- Inherits:
-
Boxafe::Notifier
- Object
- Boxafe::Notifier
- Boxafe::Notifier::Growl
- Defined in:
- lib/boxafe/notifier/growl.rb
Constant Summary collapse
- METHODS =
{ info: :notify_info, success: :notify_ok, failure: :notify_error }
Constants inherited from Boxafe::Notifier
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Boxafe::Notifier
#initialize, notifier, notifier_instance, platform_notifier
Constructor Details
This class inherits a constructor from Boxafe::Notifier
Class Method Details
.available? ⇒ Boolean
11 12 13 |
# File 'lib/boxafe/notifier/growl.rb', line 11 def self.available? ::Growl.installed? end |
Instance Method Details
#notify(msg, options = {}) ⇒ Object
15 16 17 18 |
# File 'lib/boxafe/notifier/growl.rb', line 15 def notify msg, = {} method = METHODS[.delete(:type)] || :notify_info ::Growl.send method, msg, () end |