Class: Notification::Wall
- Inherits:
-
Object
- Object
- Notification::Wall
- Defined in:
- lib/gaddygaddy-client/notification/wall.rb
Class Method Summary collapse
Class Method Details
.notify(event, message_text) ⇒ Object
18 19 20 21 22 |
# File 'lib/gaddygaddy-client/notification/wall.rb', line 18 def self.notify(event, ) if wall? systemu("echo 'Gaddy says: #{}'|wall") end end |
.wall? ⇒ Boolean
14 15 16 |
# File 'lib/gaddygaddy-client/notification/wall.rb', line 14 def self.wall? `whereis wall`.index('bin') end |