lib/rspactor/growl.rb in guillaumegentil-rspactor-0.3.4 vs lib/rspactor/growl.rb in guillaumegentil-rspactor-0.4

- old
+ new

@@ -1,10 +1,10 @@ module RSpactor module Growl extend self - def notify(title, msg, img, pri = 0) - system("growlnotify -w -n rspactor --image #{img} -p #{pri} -m #{msg.inspect} #{title} &") + def notify(title, msg, icon, pri = 0) + system("growlnotify -w -n rspactor --image #{image_path(icon)} -p #{pri} -m #{msg.inspect} #{title} &") end # failed | pending | success def image_path(icon) File.expand_path File.dirname(__FILE__) + "/../../images/#{icon}.png" \ No newline at end of file