Sha256: 93fb09c3811d734b6935f4bd55a2864e8286866f0c937383dfa156fe8601abd2

Contents?: true

Size: 390 Bytes

Versions: 1

Compression:

Stored size: 390 Bytes

Contents

module RSpactor
  module Growl
    extend self
    
    IMAGE_PATH = File.expand_path File.dirname(__FILE__) + "/../../images/%s.png"
    
    def notify(title, msg, img, pri = 0)
      system("growlnotify -w -n rspactor --image #{img} -p #{pri} -m #{msg.inspect} #{title} &") 
    end
    
    # failed | pending | success
    def image_path(icon)
      IMAGE_PATH % icon
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mislav-rspactor-0.4.0 lib/rspactor/growl.rb