class Signaly::LibnotifyOutputter

Public Instance Methods

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

  Libnotify.show(:body => text, :summary => "signaly.cz", :timeout => @config.notification_showtime)
end