Sha256: 8ea600ae29127dd93d6b99d1f6ab729e99de172d6df7f3c909127a6dfbd2d0ce
Contents?: true
Size: 637 Bytes
Versions: 7
Compression:
Stored size: 637 Bytes
Contents
require 'ebb' module Merb module Rack class Ebb # start an Ebb server on given host and port. # ==== 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 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 end end end
Version data entries
7 entries across 7 versions & 4 rubygems