class Notification::Wall

Public Class Methods

notify(event, message_text) click to toggle source
# File lib/gaddygaddy-client/notification/wall.rb, line 18
def self.notify(event, message_text)
  if wall?
    systemu("echo 'Gaddy says: #{message_text}'|wall")
  end
end
wall?() click to toggle source
# File lib/gaddygaddy-client/notification/wall.rb, line 14
def self.wall?
  `whereis wall`.index('bin')
end