Module: Notifier::Growl
Constant Summary collapse
- SCRIPT =
File.dirname(__FILE__) + "/../../resources/register-growl.scpt"
- FILE =
File.("~/.test_notifier-growl")
Instance Method Summary collapse
Instance Method Details
#notify(options) ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/notifier/growl.rb', line 12 def notify() register command = [ "growlnotify", "--name", "test_notifier", "--image", .fetch(:image, '').to_s, "--priority", "2", "--message", [:message].to_s, [:title].to_s ] Thread.new { system(*command) }.join end |