class Signaly::NotifySendOutputter
sends desktop notification using the command-line utility notify-send (useful for those who have installed libnotify, but not the Ruby bindings)
Public Instance Methods
output(new_status, old_status)
click to toggle source
# File lib/signaly/notify_send_outputter.rb, line 6 def output(new_status, old_status) text = [:pm, :notifications, :invitations].collect do |what| "#{what}: #{new_status[what]}" end.join "\n" `notify-send "#{text}"` end