Sha256: a32da6d1ccd8b57303680ffbabab32faa7b892d751f93d79ab9c2e6d864b90db
Contents?: true
Size: 705 Bytes
Versions: 2
Compression:
Stored size: 705 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 'mongrel' require 'ramaze/adapter' require 'rack/handler/mongrel' module Ramaze module Adapter # Our Mongrel adapter acts as wrapper for the Rack::Handler::Mongrel. class Mongrel < Base class << self # start server on given host and port. def run_server host, port server = ::Mongrel::HttpServer.new(host, port) server.register('/', ::Rack::Handler::Mongrel.new(self)) thread = server.run thread[:adapter] = server thread end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ramaze-0.2.0 | lib/ramaze/adapter/mongrel.rb |
ramaze-0.2.1 | lib/ramaze/adapter/mongrel.rb |