Sha256: a218ad5b3b84a1a45445c32a2ec50111f6ea98d86065850decc0252f3bb18d94

Contents?: true

Size: 655 Bytes

Versions: 2

Compression:

Stored size: 655 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 'ramaze/adapter'

module Ramaze::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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ramaze-0.3.0 lib/ramaze/adapter/cgi.rb
ramaze-0.3.5 lib/ramaze/adapter/cgi.rb