Sha256: ab7daf1fe493c7f3b63222ff1140959604c43ffe014dded04b51671ecfa99531

Contents?: true

Size: 461 Bytes

Versions: 3

Compression:

Stored size: 461 Bytes

Contents

module PushyDaemon
  class Daemon

    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 Errno::EACCES, StandardError => e
      abort "EXITING #{e.class}: #{e.message} \n #{e.backtrace.to_yaml}"
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pushyd-0.4.2 lib/pushyd/daemon.rb
pushyd-0.4.1 lib/pushyd/daemon.rb
pushyd-0.4.0 lib/pushyd/daemon.rb