Sha256: 92e5e67bf73ada81301bccc4034ff5c64afa7f694ec784a91a6eec840c14c344

Contents?: true

Size: 465 Bytes

Versions: 2

Compression:

Stored size: 465 Bytes

Contents

module PushyDaemon
  class Daemon

    def self.run
      # Create a new proxy, and dump its configuration
      Proxy.new

      # Backup infinite loop in case shout does nothing
      loop do
        sleep 1
      end

    rescue EndpointConnectionError, ShouterInterrupted => e
      abort "EXITING #{e.class}: #{e.message}"
    rescue Errno::EACCES, StandardError => e
      abort "EXITING #{e.class}: #{e.message} \n #{e.backtrace.to_yaml}"
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pushyd-0.20.1 lib/pushyd/daemon.rb
pushyd-0.20.0 lib/pushyd/daemon.rb