class Travis::Tools::Notification::LibNotify

Public Instance Methods

available?() click to toggle source
# File lib/travis/tools/notification.rb, line 63
def available?
  System.has? 'notify-send'
end
notify(title, body) click to toggle source
# File lib/travis/tools/notification.rb, line 59
def notify(title, body)
  system 'notify-send', '--expire-time=10000', '-h', 'int:transient:1', '-i', ICON, title, CGI.escapeHTML(body)
end