Sha256: c63f92c75908e32dc2319e4291b5771cbe5afb4702cc9bac680de3c9f4154ae0
Contents?: true
Size: 680 Bytes
Versions: 2
Compression:
Stored size: 680 Bytes
Contents
# Copyright (c) 2008 Michael Fellinger m.fellinger@gmail.com # All files in this distribution are subject to the terms of the Ruby license. require 'mongrel' 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 & 2 rubygems
Version | Path |
---|---|
clivecrous-ramaze-0.3.9.5 | lib/ramaze/adapter/mongrel.rb |
ramaze-0.3.9.1 | lib/ramaze/adapter/mongrel.rb |