Module: RSpactor::Growl
Constant Summary collapse
- IMAGE_PATH =
File. File.dirname(__FILE__) + "/../../images/%s.png"
Instance Method Summary collapse
-
#image_path(icon) ⇒ Object
failed | pending | success.
- #notify(title, msg, img, pri = 0) ⇒ Object
Instance Method Details
#image_path(icon) ⇒ Object
failed | pending | success
12 13 14 |
# File 'lib/rspactor/growl.rb', line 12 def image_path(icon) IMAGE_PATH % icon end |
#notify(title, msg, img, pri = 0) ⇒ Object
7 8 9 |
# File 'lib/rspactor/growl.rb', line 7 def notify(title, msg, img, pri = 0) system("growlnotify -w -n rspactor --image #{img} -p #{pri} -m #{msg.inspect} #{title} &") end |