Sha256: 999fd51e0c217f023c56bf0e5a6f9ff2ea27836a577ea1386b75dc09432e6a53

Contents?: true

Size: 709 Bytes

Versions: 1

Compression:

Stored size: 709 Bytes

Contents

require 'rlyeh/version'

require 'rlyeh/logger'
require 'rlyeh/dispatcher'
require 'rlyeh/sender'

require 'rlyeh/settings'
require 'rlyeh/server'
require 'rlyeh/connection'
require 'rlyeh/session'
require 'rlyeh/environment'
require 'rlyeh/numeric_reply'
require 'rlyeh/target'
require 'rlyeh/base'

require 'rlyeh/deep_ones'

module Rlyeh
  class << self
    attr_accessor :logger

    def run(app_class, options = {})
      supervisor = Rlyeh::Server.supervise_as :server, app_class, options

      trap(:INT) do
        supervisor.terminate
        exit
      end

      sleep
    end
    alias_method :emerge, :run
  end
end

require 'logger'
#Celluloid.logger = nil
Rlyeh.logger = ::Logger.new $stderr

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rlyeh-0.1.1 lib/rlyeh.rb