Class: PushyDaemon::Daemon

Inherits:
Object
  • Object
show all
Defined in:
lib/pushyd/daemon.rb

Class Method Summary collapse

Class Method Details

.runObject



4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/pushyd/daemon.rb', line 4

def self.run
  # Create a new proxy
  p = Proxy.new

  # Dump config table
  puts p.table.to_s

  # Create a new shouter
  s = Shouter.new

  # Start infinite loop
  s.shout

rescue Errno::EACCES, Exception => e
  abort "EXITING #{e.class}: #{e.message}"
end