Sha256: e2f78ce137a8b7c691e00dc02e887919d57143e1b700a4e69095d16b8051941e
Contents?: true
Size: 693 Bytes
Versions: 2
Compression:
Stored size: 693 Bytes
Contents
# Copyright (c) 2006 Michael Fellinger m.fellinger@gmail.com # All files in this distribution are subject to the terms of the Ruby license. require 'ramaze/adapter' require 'mongrel' # for OSX compatibility Socket.do_not_reverse_lookup = true module Ramaze::Adapter class Mongrel < Base class << self def start host, ports ports.map{|port| run_server(host, port) }.first end def run_server host, port server = ::Mongrel::HttpServer.new(host, port) server.register('/', ::Rack::Handler::Mongrel.new(self)) server.run end def stop end def call(env) new.call(env) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ramaze-0.0.9 | lib/ramaze/adapter/mongrel.rb |
ramaze-0.0.8 | lib/ramaze/adapter/mongrel.rb |