Class: Travis::Tools::Notification::Growl
- Inherits:
-
Object
- Object
- Travis::Tools::Notification::Growl
- Defined in:
- lib/travis/tools/notification.rb
Instance Method Summary collapse
Instance Method Details
#available? ⇒ Boolean
53 54 55 |
# File 'lib/travis/tools/notification.rb', line 53 def available? System.has? 'growlnotify' and System.running? "Growl" end |
#notify(title, body) ⇒ Object
49 50 51 |
# File 'lib/travis/tools/notification.rb', line 49 def notify(title, body) system 'growlnotify', '-n', 'Travis', '--image', ICON, '-m', body, title end |