Module: RSpactor::Growl
- Extended by:
- Growl
- Included in:
- CucumberGrowler, Growl, RSpecGrowler
- Defined in:
- lib/rspactor/growl.rb
Instance Method Summary collapse
-
#image_path(icon) ⇒ Object
failed | pending | success.
- #notify(title, msg, icon, pri = 0) ⇒ Object
Instance Method Details
#image_path(icon) ⇒ Object
failed | pending | success
10 11 12 |
# File 'lib/rspactor/growl.rb', line 10 def image_path(icon) File. File.dirname(__FILE__) + "/../../images/#{icon}.png" end |
#notify(title, msg, icon, pri = 0) ⇒ Object
5 6 7 |
# File 'lib/rspactor/growl.rb', line 5 def notify(title, msg, icon, pri = 0) system("growlnotify -w -n rspactor --image #{image_path(icon)} -p #{pri} -m #{msg.inspect} #{title} &") end |