Sha256: 84733e43206d3aa4470458ac02e892d1042478934fddba107b9c501ab0136960

Contents?: true

Size: 670 Bytes

Versions: 3

Compression:

Stored size: 670 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'

module Ramaze::Adapter

  # Our Fcgi adapter acts as wrapper for the Rack::Handler::FastCGI.
  class Fcgi < Base
    class << self

      # start FastCGI 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::FastCGI.run(self)
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ramaze-0.1.4 lib/ramaze/adapter/fcgi.rb
ramaze-0.2.0 lib/ramaze/adapter/fcgi.rb
ramaze-0.2.1 lib/ramaze/adapter/fcgi.rb