class Signaly::GrowlOutputter

Public Instance Methods

output(new_status, old_status) click to toggle source
# File lib/signaly/growl_outputter.rb, line 8
def output(new_status, old_status)
  text = [:pm, :notifications, :invitations].collect do |what|
    "#{what}: #{new_status[what]}"
  end.join "\n"

  notif = Growl.new 'localhost', 'ruby-growl', 'GNTP'
  notif.notify('signaly.cz', 'signaly.cz', text)
end