Class: PushyDaemon::Daemon
- Inherits:
-
Object
- Object
- PushyDaemon::Daemon
- Defined in:
- lib/pushyd/daemon.rb
Class Method Summary collapse
Class Method Details
.run ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# 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 shout loop s.shout # Backup infinite loop in case shout does nothing loop do end rescue EndpointConnectionError, ShouterInterrupted => e abort "EXITING #{e.class}: #{e.}" rescue Errno::EACCES, StandardError => e abort "EXITING #{e.class}: #{e.} \n #{e.backtrace.to_yaml}" end |