Sha256: f40286a582f2f76b01c9cf8214ade46f5be2ec39663c7dd4bb7837bfe6539e17

Contents?: true

Size: 705 Bytes

Versions: 3

Compression:

Stored size: 705 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.

module Ramaze
  Global.test_connections = false

  module Adapter
    # Our CGI adapter acts as wrapper for the Rack::Handler::CGI.
    class Cgi < Base
      class << self

        # start CGI in a new thread, host and port parameter are only taken
        # to make it compatible with other adapters but have no influence and
        # can be omitted
        def start host = nil, ports = nil
          Thread.new do
            Thread.current[:task] = :cgi
            Rack::Handler::CGI.run(self)
          end
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
clivecrous-ramaze-0.3.9.5 lib/ramaze/adapter/cgi.rb
ramaze-0.3.9 lib/ramaze/adapter/cgi.rb
ramaze-0.3.9.1 lib/ramaze/adapter/cgi.rb