Class: Travis::Tools::Notification::LibNotify
- Defined in:
- lib/travis/tools/notification.rb
Instance Method Summary collapse
-
#initialize ⇒ LibNotify
constructor
A new instance of LibNotify.
- #notify(title, body) ⇒ Object
Methods inherited from Growl
Constructor Details
#initialize ⇒ LibNotify
Returns a new instance of LibNotify.
58 59 60 61 |
# File 'lib/travis/tools/notification.rb', line 58 def initialize @command = "notify-send" @expire_time = 10_000 end |
Instance Method Details
#notify(title, body) ⇒ Object
63 64 65 |
# File 'lib/travis/tools/notification.rb', line 63 def notify(title, body) system @command, "--expire-time=#{@expire_time}", title, CGI.escapeHTML(body) end |