Class: Merb::Rack::Ebb

Inherits:
Object show all
Defined in:
lib/merb-core/rack/adapter/ebb.rb

Class Method Summary collapse

Class Method Details

.start(opts = {}) ⇒ Object

Parameters

opts<Hash>

Options for Ebb (see below).

Options (opts)

:host<String>

The hostname that Ebb should serve.

:port<Fixnum>

The port Ebb should bind to.

:app

The application



16
17
18
19
20
21
22
# File 'lib/merb-core/rack/adapter/ebb.rb', line 16

def self.start(opts={})
  Merb.logger.warn!("Using Ebb adapter")
  Merb::Dispatcher.use_mutex = false
  th = Thread.new { ::Ebb.start_server(opts[:app], opts) }
  Merb::Server.change_privilege
  th.join
end