Sha256: d0c287f0fee717facf06978203ef746ca857e3cc5efd450f3269463c5c3157bb

Contents?: true

Size: 520 Bytes

Versions: 14

Compression:

Stored size: 520 Bytes

Contents

require 'ebb'
module Merb
  
  module Rack

    class Ebb < Merb::Rack::AbstractAdapter
      # start an Ebb server on given host and port.
      
      def self.new_server(port)
        Merb::Dispatcher.use_mutex = false
        opts = @opts.merge(:port => port)
        @th = Thread.new { Thread.current[:server] = ::Ebb.start_server(opts[:app], opts) }
      end
      
      def self.start_server
        @th.join
      end
      
      def self.stop(status = 0)
        ::Ebb.stop_server
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 3 rubygems

Version Path
joe-merb-core-0.9.8 lib/merb-core/rack/adapter/ebb.rb
wycats-merb-core-0.9.9 lib/merb-core/rack/adapter/ebb.rb
merb-core-1.1.3 spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/rack/adapter/ebb.rb
merb-core-1.1.2 spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/rack/adapter/ebb.rb
merb-core-1.1.1 spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/rack/adapter/ebb.rb
merb-core-1.1.0 spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/rack/adapter/ebb.rb
merb-core-1.1.0.rc1 spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/rack/adapter/ebb.rb
merb-core-1.1.0.pre spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/rack/adapter/ebb.rb
merb-core-0.9.10 lib/merb-core/rack/adapter/ebb.rb
merb-core-0.9.11 lib/merb-core/rack/adapter/ebb.rb
merb-core-0.9.12 lib/merb-core/rack/adapter/ebb.rb
merb-core-0.9.13 lib/merb-core/rack/adapter/ebb.rb
merb-core-0.9.8 lib/merb-core/rack/adapter/ebb.rb
merb-core-0.9.9 lib/merb-core/rack/adapter/ebb.rb