Class: Travis::Tools::Notification::OSX
- Inherits:
-
Object
- Object
- Travis::Tools::Notification::OSX
- Defined in:
- lib/travis/tools/notification.rb
Constant Summary collapse
- BIN_PATH =
Instance Method Summary collapse
Instance Method Details
#available? ⇒ Boolean
43 44 45 |
# File 'lib/travis/tools/notification.rb', line 43 def available? System.mac? and System.recent_version?(System.os_version.to_s, '10.8') and System.running? "NotificationCenter" end |
#notify(title, body) ⇒ Object
39 40 41 |
# File 'lib/travis/tools/notification.rb', line 39 def notify(title, body) system BIN_PATH, '-message', body.to_s, '-title', title.to_s, '-sender', 'org.travis-ci.Travis-CI' end |