Module: RSpactor::Growl

Extended by:
Growl
Included in:
Growl, RSpecGrowler
Defined in:
lib/rspactor/growl.rb

Constant Summary collapse

IMAGE_PATH =
File.expand_path File.dirname(__FILE__) + "/../../images/%s.png"

Instance Method Summary collapse

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