class Travis::Tools::Notification::OSX
Constants
- BIN_PATH
Public Instance Methods
available?()
click to toggle source
# 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)
click to toggle source
# 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