Module: Rlyeh

Defined in:
lib/rlyeh.rb,
lib/rlyeh/base.rb,
lib/rlyeh/utils.rb,
lib/rlyeh/logger.rb,
lib/rlyeh/sender.rb,
lib/rlyeh/server.rb,
lib/rlyeh/target.rb,
lib/rlyeh/worker.rb,
lib/rlyeh/filters.rb,
lib/rlyeh/session.rb,
lib/rlyeh/version.rb,
lib/rlyeh/settings.rb,
lib/rlyeh/deep_ones.rb,
lib/rlyeh/connection.rb,
lib/rlyeh/dispatcher.rb,
lib/rlyeh/environment.rb,
lib/rlyeh/numeric_reply.rb,
lib/rlyeh/deep_ones/auth.rb,
lib/rlyeh/deep_ones/closer.rb,
lib/rlyeh/deep_ones/logger.rb,
lib/rlyeh/deep_ones/parser.rb,
lib/rlyeh/deep_ones/builder.rb,
lib/rlyeh/deep_ones/auth/base.rb,
lib/rlyeh/deep_ones/auth/null.rb,
lib/rlyeh/deep_ones/auth/basic.rb,
lib/rlyeh/deep_ones/auth/oauth.rb,
lib/rlyeh/deep_ones/typablemap.rb

Defined Under Namespace

Modules: DeepOnes, Dispatcher, Filters, Logger, NumericReply, Sender, Settings, Utils, Worker Classes: Base, Connection, Environment, Server, Session, Target

Constant Summary collapse

VERSION =
"0.1.1"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.loggerObject

Returns the value of attribute logger.



20
21
22
# File 'lib/rlyeh.rb', line 20

def logger
  @logger
end

Class Method Details

.run(app_class, options = {}) ⇒ Object Also known as: emerge



22
23
24
25
26
27
28
29
30
31
# File 'lib/rlyeh.rb', line 22

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

  trap(:INT) do
    supervisor.terminate
    exit
  end

  sleep
end