OSDN Git Service

Replaced mongrel with thin
[redminele/redminele.git] / ruby / lib / ruby / gems / 1.8 / gems / mongrel-1.1.5-x86-mswin32-60 / examples / builder.rb
diff --git a/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/examples/builder.rb b/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/examples/builder.rb
deleted file mode 100644 (file)
index 5f0803a..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-require 'mongrel'
-
-class TestPlugin < GemPlugin::Plugin "/handlers"
-  include Mongrel::HttpHandlerPlugin
-
-  def process(request, response)
-    STDERR.puts "My options are: #{options.inspect}"
-    STDERR.puts "Request Was:"
-    STDERR.puts request.params.to_yaml
-  end
-end
-
-config = Mongrel::Configurator.new :host => "127.0.0.1" do
-  load_plugins :includes => ["mongrel"], :excludes => ["rails"]
-  daemonize :cwd => Dir.pwd, :log_file => "mongrel.log", :pid_file => "mongrel.pid"
-  
-  listener :port => 3000 do
-    uri "/app", :handler => plugin("/handlers/testplugin", :test => "that")
-    uri "/app", :handler => Mongrel::DirHandler.new(".")
-    load_plugins :includes => ["mongrel", "rails"]
-  end
-
-  trap("INT") { stop }
-  run
-end
-
-config.join
-
-