mongrel 0.3.13.4 → 1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README +1 -75
- data/Rakefile +14 -14
- data/bin/mongrel_rails +35 -23
- data/doc/rdoc/classes/IO.html +12 -12
- data/doc/rdoc/classes/IO.src/{M000001.html → M000003.html} +0 -0
- data/doc/rdoc/classes/IO.src/{M000002.html → M000004.html} +0 -0
- data/doc/rdoc/classes/Kernel.html +11 -11
- data/doc/rdoc/classes/Kernel.src/{M000010.html → M000012.html} +0 -0
- data/doc/rdoc/classes/Kernel.src/{M000011.html → M000013.html} +0 -0
- data/doc/rdoc/classes/Mongrel.html +3 -3
- data/doc/rdoc/classes/Mongrel/CGIWrapper.html +77 -69
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000115.html +12 -19
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000116.html +34 -12
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000117.html +21 -5
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000118.html +19 -5
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000119.html +12 -5
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000120.html +5 -6
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000121.html +18 -0
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000122.html +18 -0
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000123.html +19 -0
- data/doc/rdoc/classes/Mongrel/Camping.html +8 -8
- data/doc/rdoc/classes/Mongrel/Camping.src/M000041.html +22 -0
- data/doc/rdoc/classes/Mongrel/Camping/CampingHandler.html +31 -12
- data/doc/rdoc/classes/Mongrel/Camping/CampingHandler.src/M000042.html +20 -0
- data/doc/rdoc/classes/Mongrel/Camping/CampingHandler.src/M000043.html +58 -0
- data/doc/rdoc/classes/Mongrel/Command/Base.html +75 -73
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000018.html +11 -5
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000019.html +29 -5
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000020.html +5 -5
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000021.html +5 -5
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000022.html +5 -9
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000023.html +5 -5
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000024.html +9 -5
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000025.html +5 -5
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000026.html +5 -11
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000027.html +5 -11
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000028.html +11 -5
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000029.html +24 -0
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000030.html +18 -0
- data/doc/rdoc/classes/Mongrel/Command/Registry.html +20 -20
- data/doc/rdoc/classes/Mongrel/Command/Registry.src/M000031.html +7 -45
- data/doc/rdoc/classes/Mongrel/Command/Registry.src/{M000030.html → M000032.html} +0 -0
- data/doc/rdoc/classes/Mongrel/Command/Registry.src/M000033.html +58 -0
- data/doc/rdoc/classes/Mongrel/Configurator.html +163 -140
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000093.html +14 -8
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000094.html +18 -7
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000095.html +5 -10
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000096.html +8 -5
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000097.html +7 -25
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000098.html +10 -6
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000099.html +5 -26
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000100.html +25 -20
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000101.html +6 -5
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000102.html +26 -11
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000103.html +20 -6
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000104.html +5 -5
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000105.html +11 -9
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000106.html +6 -9
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000107.html +5 -5
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000108.html +9 -21
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000109.html +9 -5
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000110.html +5 -23
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000111.html +21 -5
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000112.html +18 -0
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000113.html +36 -0
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000114.html +18 -0
- data/doc/rdoc/classes/Mongrel/Const.html +8 -9
- data/doc/rdoc/classes/Mongrel/DeflateFilter.html +19 -12
- data/doc/rdoc/classes/Mongrel/DeflateFilter.src/{M000121.html → M000124.html} +5 -5
- data/doc/rdoc/classes/Mongrel/DeflateFilter.src/{M000122.html → M000125.html} +9 -14
- data/doc/rdoc/classes/Mongrel/DirHandler.html +43 -43
- data/doc/rdoc/classes/Mongrel/DirHandler.src/M000051.html +8 -25
- data/doc/rdoc/classes/Mongrel/DirHandler.src/M000052.html +29 -50
- data/doc/rdoc/classes/Mongrel/DirHandler.src/M000053.html +25 -26
- data/doc/rdoc/classes/Mongrel/DirHandler.src/M000054.html +52 -5
- data/doc/rdoc/classes/Mongrel/DirHandler.src/M000055.html +39 -0
- data/doc/rdoc/classes/Mongrel/DirHandler.src/M000056.html +18 -0
- data/doc/rdoc/classes/Mongrel/Error404Handler.html +11 -11
- data/doc/rdoc/classes/Mongrel/Error404Handler.src/{M000123.html → M000126.html} +4 -4
- data/doc/rdoc/classes/Mongrel/Error404Handler.src/{M000124.html → M000127.html} +4 -4
- data/doc/rdoc/classes/Mongrel/HeaderOut.html +15 -10
- data/doc/rdoc/classes/Mongrel/HeaderOut.src/M000066.html +21 -0
- data/doc/rdoc/classes/Mongrel/HeaderOut.src/M000067.html +21 -0
- data/doc/rdoc/classes/Mongrel/HttpHandler.html +25 -23
- data/doc/rdoc/classes/Mongrel/HttpHandler.src/M000072.html +4 -4
- data/doc/rdoc/classes/Mongrel/HttpHandler.src/{M000071.html → M000073.html} +3 -3
- data/doc/rdoc/classes/Mongrel/{HttpHandlerPlugin.src/M000012.html → HttpHandler.src/M000074.html} +4 -4
- data/doc/rdoc/classes/Mongrel/HttpHandlerPlugin.html +22 -21
- data/doc/rdoc/classes/Mongrel/HttpHandlerPlugin.src/M000014.html +4 -6
- data/doc/rdoc/classes/Mongrel/HttpHandlerPlugin.src/M000015.html +4 -4
- data/doc/rdoc/classes/Mongrel/HttpHandlerPlugin.src/M000016.html +19 -0
- data/doc/rdoc/classes/Mongrel/{HttpHandler.src/M000070.html → HttpHandlerPlugin.src/M000017.html} +4 -4
- data/doc/rdoc/classes/Mongrel/HttpParser.html +44 -42
- data/doc/rdoc/classes/Mongrel/HttpParser.src/M000044.html +6 -7
- data/doc/rdoc/classes/Mongrel/HttpParser.src/M000045.html +7 -37
- data/doc/rdoc/classes/Mongrel/HttpParser.src/M000046.html +7 -5
- data/doc/rdoc/classes/Mongrel/HttpParser.src/M000047.html +37 -5
- data/doc/rdoc/classes/Mongrel/HttpParser.src/M000048.html +5 -6
- data/doc/rdoc/classes/Mongrel/HttpParser.src/{M000042.html → M000049.html} +5 -6
- data/doc/rdoc/classes/Mongrel/HttpParser.src/{M000043.html → M000050.html} +6 -7
- data/doc/rdoc/classes/Mongrel/HttpRequest.html +37 -40
- data/doc/rdoc/classes/Mongrel/HttpRequest.src/M000133.html +37 -7
- data/doc/rdoc/classes/Mongrel/HttpRequest.src/M000134.html +28 -7
- data/doc/rdoc/classes/Mongrel/HttpRequest.src/M000135.html +16 -19
- data/doc/rdoc/classes/Mongrel/HttpRequest.src/M000136.html +20 -0
- data/doc/rdoc/classes/Mongrel/HttpRequest.src/M000137.html +20 -0
- data/doc/rdoc/classes/Mongrel/HttpRequest.src/M000138.html +32 -0
- data/doc/rdoc/classes/Mongrel/HttpResponse.html +95 -85
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000075.html +12 -13
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000076.html +7 -9
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000077.html +13 -9
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000078.html +9 -9
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000079.html +9 -18
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000080.html +9 -8
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000081.html +18 -7
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000082.html +8 -7
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000083.html +7 -7
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000084.html +7 -5
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000085.html +20 -0
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000086.html +18 -0
- data/doc/rdoc/classes/Mongrel/HttpServer.html +59 -63
- data/doc/rdoc/classes/Mongrel/HttpServer.src/M000057.html +12 -19
- data/doc/rdoc/classes/Mongrel/HttpServer.src/M000058.html +87 -8
- data/doc/rdoc/classes/Mongrel/HttpServer.src/M000059.html +19 -9
- data/doc/rdoc/classes/Mongrel/HttpServer.src/M000060.html +8 -49
- data/doc/rdoc/classes/Mongrel/HttpServer.src/M000061.html +16 -21
- data/doc/rdoc/classes/Mongrel/HttpServer.src/M000062.html +52 -5
- data/doc/rdoc/classes/Mongrel/HttpServer.src/M000063.html +21 -9
- data/doc/rdoc/classes/Mongrel/{HeaderOut.src → HttpServer.src}/M000064.html +5 -5
- data/doc/rdoc/classes/Mongrel/HttpServer.src/M000065.html +22 -0
- data/doc/rdoc/classes/Mongrel/Rails/RailsConfigurator.html +27 -25
- data/doc/rdoc/classes/Mongrel/Rails/RailsConfigurator.src/M000034.html +24 -13
- data/doc/rdoc/classes/Mongrel/Rails/RailsConfigurator.src/{M000033.html → M000035.html} +11 -11
- data/doc/rdoc/classes/Mongrel/Rails/RailsConfigurator.src/M000036.html +26 -0
- data/doc/rdoc/classes/Mongrel/Rails/RailsHandler.html +24 -26
- data/doc/rdoc/classes/Mongrel/Rails/RailsHandler.src/M000037.html +10 -8
- data/doc/rdoc/classes/Mongrel/Rails/RailsHandler.src/M000038.html +43 -12
- data/doc/rdoc/classes/Mongrel/Rails/RailsHandler.src/M000039.html +20 -0
- data/doc/rdoc/classes/Mongrel/Rails/RailsHandler.src/M000040.html +25 -0
- data/doc/rdoc/classes/Mongrel/RedirectHandler.html +10 -10
- data/doc/rdoc/classes/Mongrel/RedirectHandler.src/{M000128.html → M000131.html} +8 -8
- data/doc/rdoc/classes/Mongrel/RedirectHandler.src/{M000129.html → M000132.html} +13 -13
- data/doc/rdoc/classes/Mongrel/StatisticsFilter.html +20 -20
- data/doc/rdoc/classes/Mongrel/StatisticsFilter.src/{M000125.html → M000128.html} +10 -10
- data/doc/rdoc/classes/Mongrel/StatisticsFilter.src/{M000126.html → M000129.html} +10 -10
- data/doc/rdoc/classes/Mongrel/StatisticsFilter.src/{M000127.html → M000130.html} +4 -4
- data/doc/rdoc/classes/Mongrel/Stats.html +43 -42
- data/doc/rdoc/classes/Mongrel/Stats.src/M000139.html +6 -5
- data/doc/rdoc/classes/Mongrel/Stats.src/M000140.html +10 -5
- data/doc/rdoc/classes/Mongrel/Stats.src/M000141.html +13 -5
- data/doc/rdoc/classes/Mongrel/Stats.src/M000142.html +5 -10
- data/doc/rdoc/classes/Mongrel/Stats.src/M000143.html +5 -7
- data/doc/rdoc/classes/Mongrel/Stats.src/{M000136.html → M000144.html} +5 -6
- data/doc/rdoc/classes/Mongrel/Stats.src/M000145.html +23 -0
- data/doc/rdoc/classes/Mongrel/Stats.src/M000146.html +20 -0
- data/doc/rdoc/classes/Mongrel/StatusHandler.html +21 -21
- data/doc/rdoc/classes/Mongrel/StatusHandler.src/M000068.html +5 -29
- data/doc/rdoc/classes/Mongrel/StatusHandler.src/M000069.html +11 -7
- data/doc/rdoc/classes/Mongrel/StatusHandler.src/M000070.html +42 -0
- data/doc/rdoc/classes/Mongrel/StatusHandler.src/M000071.html +20 -0
- data/doc/rdoc/classes/Mongrel/URIClassifier.html +58 -55
- data/doc/rdoc/classes/Mongrel/URIClassifier.src/M000087.html +5 -26
- data/doc/rdoc/classes/Mongrel/URIClassifier.src/M000088.html +5 -38
- data/doc/rdoc/classes/Mongrel/URIClassifier.src/M000089.html +18 -15
- data/doc/rdoc/classes/Mongrel/URIClassifier.src/M000090.html +25 -57
- data/doc/rdoc/classes/Mongrel/URIClassifier.src/M000091.html +36 -0
- data/doc/rdoc/classes/Mongrel/URIClassifier.src/M000092.html +83 -0
- data/doc/rdoc/classes/MongrelDbg.html +25 -25
- data/doc/rdoc/classes/MongrelDbg.src/M000007.html +11 -9
- data/doc/rdoc/classes/MongrelDbg.src/M000008.html +7 -8
- data/doc/rdoc/classes/MongrelDbg.src/M000009.html +9 -5
- data/doc/rdoc/classes/MongrelDbg.src/M000010.html +21 -0
- data/doc/rdoc/classes/MongrelDbg.src/M000011.html +18 -0
- data/doc/rdoc/classes/{Sync.html → Mutex.html} +50 -19
- data/doc/rdoc/classes/Mutex.src/M000001.html +24 -0
- data/doc/rdoc/classes/Mutex.src/M000002.html +32 -0
- data/doc/rdoc/classes/RequestLog/Access.html +5 -5
- data/doc/rdoc/classes/RequestLog/Access.src/{M000144.html → M000147.html} +0 -0
- data/doc/rdoc/classes/RequestLog/Files.html +5 -5
- data/doc/rdoc/classes/RequestLog/Files.src/{M000145.html → M000148.html} +0 -0
- data/doc/rdoc/classes/RequestLog/Objects.html +5 -5
- data/doc/rdoc/classes/RequestLog/Objects.src/{M000147.html → M000150.html} +0 -0
- data/doc/rdoc/classes/RequestLog/Params.html +5 -5
- data/doc/rdoc/classes/RequestLog/Params.src/{M000148.html → M000151.html} +0 -0
- data/doc/rdoc/classes/RequestLog/Threads.html +5 -5
- data/doc/rdoc/classes/RequestLog/Threads.src/{M000146.html → M000149.html} +0 -0
- data/doc/rdoc/classes/TCPServer.html +10 -10
- data/doc/rdoc/classes/TCPServer.src/{M000003.html → M000005.html} +0 -0
- data/doc/rdoc/created.rid +1 -1
- data/doc/rdoc/files/COPYING.html +1 -1
- data/doc/rdoc/files/LICENSE.html +1 -1
- data/doc/rdoc/files/README.html +11 -100
- data/doc/rdoc/files/ext/http11/http11_c.html +1 -1
- data/doc/rdoc/files/lib/mongrel/camping_rb.html +2 -2
- data/doc/rdoc/files/lib/mongrel/cgi_rb.html +2 -2
- data/doc/rdoc/files/lib/mongrel/command_rb.html +2 -2
- data/doc/rdoc/files/lib/mongrel/configurator_rb.html +1 -1
- data/doc/rdoc/files/lib/mongrel/debug_rb.html +2 -2
- data/doc/rdoc/files/lib/mongrel/handlers_rb.html +3 -2
- data/doc/rdoc/files/lib/mongrel/init_rb.html +2 -2
- data/doc/rdoc/files/lib/mongrel/rails_rb.html +2 -3
- data/doc/rdoc/files/lib/mongrel/stats_rb.html +2 -2
- data/doc/rdoc/files/lib/mongrel/tcphack_rb.html +2 -2
- data/doc/rdoc/files/lib/mongrel_rb.html +5 -3
- data/doc/rdoc/files/lib/mutex_fix_rb.html +108 -0
- data/doc/rdoc/fr_class_index.html +1 -1
- data/doc/rdoc/fr_file_index.html +1 -0
- data/doc/rdoc/fr_method_index.html +151 -148
- data/ext/http11/http11.c +2 -2
- data/lib/mongrel.rb +85 -38
- data/lib/mongrel/camping.rb +17 -4
- data/lib/mongrel/configurator.rb +11 -7
- data/lib/mongrel/handlers.rb +30 -27
- data/lib/mongrel/mime_types.yml +615 -0
- data/lib/mongrel/rails.rb +21 -28
- data/lib/mutex_fix.rb +34 -0
- data/test/test_handlers.rb +16 -4
- data/test/test_http11.rb +8 -0
- data/test/test_request_progress.rb +45 -2
- data/test/test_response.rb +31 -0
- metadata +95 -71
- data/bin/mongrel_rails_service +0 -246
- data/bin/mongrel_rails_svc +0 -307
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000112.html +0 -25
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000113.html +0 -47
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000114.html +0 -34
- data/doc/rdoc/classes/Mongrel/Camping.src/M000039.html +0 -22
- data/doc/rdoc/classes/Mongrel/Camping/CampingHandler.src/M000040.html +0 -18
- data/doc/rdoc/classes/Mongrel/Camping/CampingHandler.src/M000041.html +0 -51
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000016.html +0 -24
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000017.html +0 -42
- data/doc/rdoc/classes/Mongrel/Command/Registry.src/M000029.html +0 -20
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000091.html +0 -27
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000092.html +0 -31
- data/doc/rdoc/classes/Mongrel/DirHandler.src/M000049.html +0 -21
- data/doc/rdoc/classes/Mongrel/DirHandler.src/M000050.html +0 -43
- data/doc/rdoc/classes/Mongrel/HeaderOut.src/M000065.html +0 -18
- data/doc/rdoc/classes/Mongrel/HttpHandlerPlugin.src/M000013.html +0 -17
- data/doc/rdoc/classes/Mongrel/HttpRequest.src/M000130.html +0 -47
- data/doc/rdoc/classes/Mongrel/HttpRequest.src/M000131.html +0 -37
- data/doc/rdoc/classes/Mongrel/HttpRequest.src/M000132.html +0 -29
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000073.html +0 -25
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000074.html +0 -20
- data/doc/rdoc/classes/Mongrel/HttpServer.src/M000055.html +0 -25
- data/doc/rdoc/classes/Mongrel/HttpServer.src/M000056.html +0 -91
- data/doc/rdoc/classes/Mongrel/Rails/RailsConfigurator.src/M000032.html +0 -37
- data/doc/rdoc/classes/Mongrel/Rails/RailsHandler.src/M000035.html +0 -23
- data/doc/rdoc/classes/Mongrel/Rails/RailsHandler.src/M000036.html +0 -54
- data/doc/rdoc/classes/Mongrel/Stats.src/M000137.html +0 -23
- data/doc/rdoc/classes/Mongrel/Stats.src/M000138.html +0 -26
- data/doc/rdoc/classes/Mongrel/StatusHandler.src/M000066.html +0 -18
- data/doc/rdoc/classes/Mongrel/StatusHandler.src/M000067.html +0 -24
- data/doc/rdoc/classes/Mongrel/URIClassifier.src/M000085.html +0 -18
- data/doc/rdoc/classes/Mongrel/URIClassifier.src/M000086.html +0 -18
- data/doc/rdoc/classes/MongrelDbg.src/M000005.html +0 -24
- data/doc/rdoc/classes/MongrelDbg.src/M000006.html +0 -20
|
File without changes
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
+
<!DOCTYPE html
|
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
5
|
+
|
|
6
|
+
<html>
|
|
7
|
+
<head>
|
|
8
|
+
<title>run (Mongrel::Command::Registry)</title>
|
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
10
|
+
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
|
+
</head>
|
|
12
|
+
<body class="standalone-code">
|
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/mongrel/command.rb, line 174</span>
|
|
14
|
+
174: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">run</span>(<span class="ruby-identifier">args</span>)
|
|
15
|
+
175: <span class="ruby-comment cmt"># find the command</span>
|
|
16
|
+
176: <span class="ruby-identifier">cmd_name</span> = <span class="ruby-identifier">args</span>.<span class="ruby-identifier">shift</span>
|
|
17
|
+
177:
|
|
18
|
+
178: <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">cmd_name</span> <span class="ruby-keyword kw">or</span> <span class="ruby-identifier">cmd_name</span> <span class="ruby-operator">==</span> <span class="ruby-value str">"?"</span> <span class="ruby-keyword kw">or</span> <span class="ruby-identifier">cmd_name</span> <span class="ruby-operator">==</span> <span class="ruby-value str">"help"</span>
|
|
19
|
+
179: <span class="ruby-identifier">print_command_list</span>
|
|
20
|
+
180: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span>
|
|
21
|
+
181: <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">cmd_name</span> <span class="ruby-operator">==</span> <span class="ruby-value str">"--version"</span>
|
|
22
|
+
182: <span class="ruby-constant">STDERR</span>.<span class="ruby-identifier">puts</span> <span class="ruby-node">"Mongrel Web Server #{Mongrel::Const::MONGREL_VERSION}"</span>
|
|
23
|
+
183: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span>
|
|
24
|
+
184: <span class="ruby-keyword kw">end</span>
|
|
25
|
+
185:
|
|
26
|
+
186: <span class="ruby-keyword kw">begin</span>
|
|
27
|
+
187: <span class="ruby-comment cmt"># quick hack so that existing commands will keep working but the Mongrel:: ones can be moved</span>
|
|
28
|
+
188: <span class="ruby-keyword kw">if</span> [<span class="ruby-value str">"start"</span>, <span class="ruby-value str">"stop"</span>, <span class="ruby-value str">"restart"</span>].<span class="ruby-identifier">include?</span> <span class="ruby-identifier">cmd_name</span>
|
|
29
|
+
189: <span class="ruby-identifier">cmd_name</span> = <span class="ruby-value str">"mongrel::"</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">cmd_name</span>
|
|
30
|
+
190: <span class="ruby-keyword kw">end</span>
|
|
31
|
+
191:
|
|
32
|
+
192: <span class="ruby-identifier">command</span> = <span class="ruby-constant">GemPlugin</span><span class="ruby-operator">::</span><span class="ruby-constant">Manager</span>.<span class="ruby-identifier">instance</span>.<span class="ruby-identifier">create</span>(<span class="ruby-node">"/commands/#{cmd_name}"</span>, <span class="ruby-identifier">:argv</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">args</span>)
|
|
33
|
+
193: <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">OptionParser</span><span class="ruby-operator">::</span><span class="ruby-constant">InvalidOption</span>
|
|
34
|
+
194: <span class="ruby-constant">STDERR</span>.<span class="ruby-identifier">puts</span> <span class="ruby-node">"#$! for command '#{cmd_name}'"</span>
|
|
35
|
+
195: <span class="ruby-constant">STDERR</span>.<span class="ruby-identifier">puts</span> <span class="ruby-node">"Try #{cmd_name} -h to get help."</span>
|
|
36
|
+
196: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span>
|
|
37
|
+
197: <span class="ruby-keyword kw">rescue</span>
|
|
38
|
+
198: <span class="ruby-constant">STDERR</span>.<span class="ruby-identifier">puts</span> <span class="ruby-node">"ERROR RUNNING '#{cmd_name}': #$!"</span>
|
|
39
|
+
199: <span class="ruby-constant">STDERR</span>.<span class="ruby-identifier">puts</span> <span class="ruby-value str">"Use help command to get help"</span>
|
|
40
|
+
200: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span>
|
|
41
|
+
201: <span class="ruby-keyword kw">end</span>
|
|
42
|
+
202:
|
|
43
|
+
203: <span class="ruby-comment cmt"># Normally the command is NOT valid right after being created</span>
|
|
44
|
+
204: <span class="ruby-comment cmt"># but sometimes (like with -h or -v) there's no further processing</span>
|
|
45
|
+
205: <span class="ruby-comment cmt"># needed so the command is already valid so we can skip it.</span>
|
|
46
|
+
206: <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">not</span> <span class="ruby-identifier">command</span>.<span class="ruby-identifier">done_validating</span>
|
|
47
|
+
207: <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">not</span> <span class="ruby-identifier">command</span>.<span class="ruby-identifier">validate</span>
|
|
48
|
+
208: <span class="ruby-constant">STDERR</span>.<span class="ruby-identifier">puts</span> <span class="ruby-node">"#{cmd_name} reported an error. Use mongrel_rails #{cmd_name} -h to get help."</span>
|
|
49
|
+
209: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span>
|
|
50
|
+
210: <span class="ruby-keyword kw">else</span>
|
|
51
|
+
211: <span class="ruby-identifier">command</span>.<span class="ruby-identifier">run</span>
|
|
52
|
+
212: <span class="ruby-keyword kw">end</span>
|
|
53
|
+
213: <span class="ruby-keyword kw">end</span>
|
|
54
|
+
214:
|
|
55
|
+
215: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span>
|
|
56
|
+
216: <span class="ruby-keyword kw">end</span></pre>
|
|
57
|
+
</body>
|
|
58
|
+
</html>
|
|
@@ -102,15 +102,18 @@ It is used like this:
|
|
|
102
102
|
This will setup a simple <a href="DirHandler.html">DirHandler</a> at the
|
|
103
103
|
current directory and load additional mime types from mimy.yaml. The :host
|
|
104
104
|
=> "127.0.0.1" is actually not specific to the servers but
|
|
105
|
-
just a hash of default parameters that all server or
|
|
105
|
+
just a hash of default parameters that all server or <a
|
|
106
|
+
href="Configurator.html#M000101">uri</a> calls receive.
|
|
106
107
|
</p>
|
|
107
108
|
<p>
|
|
108
109
|
When you are inside the block after <a
|
|
109
|
-
href="Configurator.html#
|
|
110
|
+
href="Configurator.html#M000093">Mongrel::Configurator.new</a> you can
|
|
110
111
|
simply call functions that are part of <a
|
|
111
|
-
href="Configurator.html">Configurator</a> (like server,
|
|
112
|
-
|
|
113
|
-
|
|
112
|
+
href="Configurator.html">Configurator</a> (like server, <a
|
|
113
|
+
href="Configurator.html#M000101">uri</a>, <a
|
|
114
|
+
href="Configurator.html#M000102">daemonize</a>, etc) without having to
|
|
115
|
+
refer to anything else. You can also call these functions on the resulting
|
|
116
|
+
object directly for additional configuration.
|
|
114
117
|
</p>
|
|
115
118
|
<p>
|
|
116
119
|
A major thing about <a href="Configurator.html">Configurator</a> is that it
|
|
@@ -132,27 +135,28 @@ want. These are kept in a map config.listeners so you can get to them.
|
|
|
132
135
|
<h3 class="section-bar">Methods</h3>
|
|
133
136
|
|
|
134
137
|
<div class="name-list">
|
|
135
|
-
<a href="#
|
|
136
|
-
<a href="#
|
|
137
|
-
<a href="#
|
|
138
|
-
<a href="#
|
|
139
|
-
<a href="#
|
|
140
|
-
<a href="#
|
|
141
|
-
<a href="#
|
|
142
|
-
<a href="#
|
|
143
|
-
<a href="#
|
|
144
|
-
<a href="#
|
|
145
|
-
<a href="#
|
|
146
|
-
<a href="#
|
|
147
|
-
<a href="#
|
|
148
|
-
<a href="#
|
|
149
|
-
<a href="#
|
|
150
|
-
<a href="#
|
|
151
|
-
<a href="#
|
|
152
|
-
<a href="#
|
|
153
|
-
<a href="#
|
|
154
|
-
<a href="#
|
|
155
|
-
<a href="#
|
|
138
|
+
<a href="#M000094">change_privilege</a>
|
|
139
|
+
<a href="#M000098">cloaker</a>
|
|
140
|
+
<a href="#M000097">cloaking_class</a>
|
|
141
|
+
<a href="#M000102">daemonize</a>
|
|
142
|
+
<a href="#M000111">debug</a>
|
|
143
|
+
<a href="#M000110">join</a>
|
|
144
|
+
<a href="#M000100">listener</a>
|
|
145
|
+
<a href="#M000105">load_mime_map</a>
|
|
146
|
+
<a href="#M000103">load_plugins</a>
|
|
147
|
+
<a href="#M000104">load_yaml</a>
|
|
148
|
+
<a href="#M000114">log</a>
|
|
149
|
+
<a href="#M000093">new</a>
|
|
150
|
+
<a href="#M000106">plugin</a>
|
|
151
|
+
<a href="#M000107">redirect</a>
|
|
152
|
+
<a href="#M000095">remove_pid_file</a>
|
|
153
|
+
<a href="#M000099">resolve_defaults</a>
|
|
154
|
+
<a href="#M000108">run</a>
|
|
155
|
+
<a href="#M000112">run_config</a>
|
|
156
|
+
<a href="#M000113">setup_signals</a>
|
|
157
|
+
<a href="#M000109">stop</a>
|
|
158
|
+
<a href="#M000101">uri</a>
|
|
159
|
+
<a href="#M000096">write_pid_file</a>
|
|
156
160
|
</div>
|
|
157
161
|
</div>
|
|
158
162
|
|
|
@@ -197,12 +201,12 @@ want. These are kept in a map config.listeners so you can get to them.
|
|
|
197
201
|
<div id="methods">
|
|
198
202
|
<h3 class="section-bar">Public Class methods</h3>
|
|
199
203
|
|
|
200
|
-
<div id="method-
|
|
201
|
-
<a name="
|
|
204
|
+
<div id="method-M000093" class="method-detail">
|
|
205
|
+
<a name="M000093"></a>
|
|
202
206
|
|
|
203
207
|
<div class="method-heading">
|
|
204
|
-
<a href="Configurator.src/
|
|
205
|
-
onclick="popupCode('Configurator.src/
|
|
208
|
+
<a href="Configurator.src/M000093.html" target="Code" class="method-signature"
|
|
209
|
+
onclick="popupCode('Configurator.src/M000093.html');return false;">
|
|
206
210
|
<span class="method-name">new</span><span class="method-args">(defaults={}, &blk)</span>
|
|
207
211
|
</a>
|
|
208
212
|
</div>
|
|
@@ -216,12 +220,12 @@ You pass in initial defaults and then a block to continue configuring.
|
|
|
216
220
|
|
|
217
221
|
<h3 class="section-bar">Public Instance methods</h3>
|
|
218
222
|
|
|
219
|
-
<div id="method-
|
|
220
|
-
<a name="
|
|
223
|
+
<div id="method-M000094" class="method-detail">
|
|
224
|
+
<a name="M000094"></a>
|
|
221
225
|
|
|
222
226
|
<div class="method-heading">
|
|
223
|
-
<a href="Configurator.src/
|
|
224
|
-
onclick="popupCode('Configurator.src/
|
|
227
|
+
<a href="Configurator.src/M000094.html" target="Code" class="method-signature"
|
|
228
|
+
onclick="popupCode('Configurator.src/M000094.html');return false;">
|
|
225
229
|
<span class="method-name">change_privilege</span><span class="method-args">(user, group)</span>
|
|
226
230
|
</a>
|
|
227
231
|
</div>
|
|
@@ -233,12 +237,12 @@ Change privilege of the process to specified user and group.
|
|
|
233
237
|
</div>
|
|
234
238
|
</div>
|
|
235
239
|
|
|
236
|
-
<div id="method-
|
|
237
|
-
<a name="
|
|
240
|
+
<div id="method-M000098" class="method-detail">
|
|
241
|
+
<a name="M000098"></a>
|
|
238
242
|
|
|
239
243
|
<div class="method-heading">
|
|
240
|
-
<a href="Configurator.src/
|
|
241
|
-
onclick="popupCode('Configurator.src/
|
|
244
|
+
<a href="Configurator.src/M000098.html" target="Code" class="method-signature"
|
|
245
|
+
onclick="popupCode('Configurator.src/M000098.html');return false;">
|
|
242
246
|
<span class="method-name">cloaker</span><span class="method-args">(&blk)</span>
|
|
243
247
|
</a>
|
|
244
248
|
</div>
|
|
@@ -250,12 +254,12 @@ Do not call this. You were warned.
|
|
|
250
254
|
</div>
|
|
251
255
|
</div>
|
|
252
256
|
|
|
253
|
-
<div id="method-
|
|
254
|
-
<a name="
|
|
257
|
+
<div id="method-M000097" class="method-detail">
|
|
258
|
+
<a name="M000097"></a>
|
|
255
259
|
|
|
256
260
|
<div class="method-heading">
|
|
257
|
-
<a href="Configurator.src/
|
|
258
|
-
onclick="popupCode('Configurator.src/
|
|
261
|
+
<a href="Configurator.src/M000097.html" target="Code" class="method-signature"
|
|
262
|
+
onclick="popupCode('Configurator.src/M000097.html');return false;">
|
|
259
263
|
<span class="method-name">cloaking_class</span><span class="method-args">()</span>
|
|
260
264
|
</a>
|
|
261
265
|
</div>
|
|
@@ -267,12 +271,12 @@ generates a class for cloaking the current self and making the DSL nicer
|
|
|
267
271
|
</div>
|
|
268
272
|
</div>
|
|
269
273
|
|
|
270
|
-
<div id="method-
|
|
271
|
-
<a name="
|
|
274
|
+
<div id="method-M000102" class="method-detail">
|
|
275
|
+
<a name="M000102"></a>
|
|
272
276
|
|
|
273
277
|
<div class="method-heading">
|
|
274
|
-
<a href="Configurator.src/
|
|
275
|
-
onclick="popupCode('Configurator.src/
|
|
278
|
+
<a href="Configurator.src/M000102.html" target="Code" class="method-signature"
|
|
279
|
+
onclick="popupCode('Configurator.src/M000102.html');return false;">
|
|
276
280
|
<span class="method-name">daemonize</span><span class="method-args">(options={})</span>
|
|
277
281
|
</a>
|
|
278
282
|
</div>
|
|
@@ -305,34 +309,35 @@ gem/library if NOT win32.
|
|
|
305
309
|
</div>
|
|
306
310
|
</div>
|
|
307
311
|
|
|
308
|
-
<div id="method-
|
|
309
|
-
<a name="
|
|
312
|
+
<div id="method-M000111" class="method-detail">
|
|
313
|
+
<a name="M000111"></a>
|
|
310
314
|
|
|
311
315
|
<div class="method-heading">
|
|
312
|
-
<a href="Configurator.src/
|
|
313
|
-
onclick="popupCode('Configurator.src/
|
|
314
|
-
<span class="method-name">debug</span><span class="method-args">(location, what = [:
|
|
316
|
+
<a href="Configurator.src/M000111.html" target="Code" class="method-signature"
|
|
317
|
+
onclick="popupCode('Configurator.src/M000111.html');return false;">
|
|
318
|
+
<span class="method-name">debug</span><span class="method-args">(location, what = [:access, :files, :objects, :threads, :rails])</span>
|
|
315
319
|
</a>
|
|
316
320
|
</div>
|
|
317
321
|
|
|
318
322
|
<div class="method-description">
|
|
319
323
|
<p>
|
|
320
324
|
Calling this before you register your URIs to the given location will setup
|
|
321
|
-
a set of handlers that log open
|
|
322
|
-
request. This helps you track
|
|
323
|
-
href="Rails.html">Rails</a> applications that
|
|
324
|
-
unresponsive after a little while.
|
|
325
|
+
a set of handlers that <a href="Configurator.html#M000114">log</a> open
|
|
326
|
+
files, objects, and the parameters for each request. This helps you track
|
|
327
|
+
common problems found in <a href="Rails.html">Rails</a> applications that
|
|
328
|
+
are either slow or become unresponsive after a little while.
|
|
325
329
|
</p>
|
|
326
330
|
<p>
|
|
327
|
-
You can pass an extra parameter <b>what</b> to indicate what you want to
|
|
328
|
-
debug
|
|
331
|
+
You can pass an extra parameter <b>what</b> to indicate what you want to <a
|
|
332
|
+
href="Configurator.html#M000111">debug</a>. For example, if you just want
|
|
333
|
+
to dump rails stuff then do:
|
|
329
334
|
</p>
|
|
330
335
|
<pre>
|
|
331
336
|
debug "/", what = [:rails]
|
|
332
337
|
</pre>
|
|
333
338
|
<p>
|
|
334
339
|
And it will only produce the log/mongrel_debug/rails.log file. Available
|
|
335
|
-
options are: :
|
|
340
|
+
options are: :access, :files, :objects, :threads, :rails
|
|
336
341
|
</p>
|
|
337
342
|
<p>
|
|
338
343
|
NOTE: Use [:files] to get accesses dumped to stderr like with WEBrick.
|
|
@@ -340,12 +345,12 @@ NOTE: Use [:files] to get accesses dumped to stderr like with WEBrick.
|
|
|
340
345
|
</div>
|
|
341
346
|
</div>
|
|
342
347
|
|
|
343
|
-
<div id="method-
|
|
344
|
-
<a name="
|
|
348
|
+
<div id="method-M000110" class="method-detail">
|
|
349
|
+
<a name="M000110"></a>
|
|
345
350
|
|
|
346
351
|
<div class="method-heading">
|
|
347
|
-
<a href="Configurator.src/
|
|
348
|
-
onclick="popupCode('Configurator.src/
|
|
352
|
+
<a href="Configurator.src/M000110.html" target="Code" class="method-signature"
|
|
353
|
+
onclick="popupCode('Configurator.src/M000110.html');return false;">
|
|
349
354
|
<span class="method-name">join</span><span class="method-args">()</span>
|
|
350
355
|
</a>
|
|
351
356
|
</div>
|
|
@@ -359,23 +364,24 @@ In other words do it like: config.join.
|
|
|
359
364
|
</div>
|
|
360
365
|
</div>
|
|
361
366
|
|
|
362
|
-
<div id="method-
|
|
363
|
-
<a name="
|
|
367
|
+
<div id="method-M000100" class="method-detail">
|
|
368
|
+
<a name="M000100"></a>
|
|
364
369
|
|
|
365
370
|
<div class="method-heading">
|
|
366
|
-
<a href="Configurator.src/
|
|
367
|
-
onclick="popupCode('Configurator.src/
|
|
371
|
+
<a href="Configurator.src/M000100.html" target="Code" class="method-signature"
|
|
372
|
+
onclick="popupCode('Configurator.src/M000100.html');return false;">
|
|
368
373
|
<span class="method-name">listener</span><span class="method-args">(options={},&blk)</span>
|
|
369
374
|
</a>
|
|
370
375
|
</div>
|
|
371
376
|
|
|
372
377
|
<div class="method-description">
|
|
373
378
|
<p>
|
|
374
|
-
Starts a listener block. This is
|
|
375
|
-
and then you make <a
|
|
376
|
-
calls in order to
|
|
377
|
-
|
|
378
|
-
href="Configurator.html#
|
|
379
|
+
Starts a <a href="Configurator.html#M000100">listener</a> block. This is
|
|
380
|
+
the only one that actually takes a block and then you make <a
|
|
381
|
+
href="Configurator.html#M000101">Configurator.uri</a> calls in order to
|
|
382
|
+
setup your URIs and handlers. If you write your Handlers as GemPlugins then
|
|
383
|
+
you can use <a href="Configurator.html#M000103">load_plugins</a> and <a
|
|
384
|
+
href="Configurator.html#M000106">plugin</a> to load them.
|
|
379
385
|
</p>
|
|
380
386
|
<p>
|
|
381
387
|
It expects the following options (or defaults):
|
|
@@ -405,12 +411,12 @@ It expects the following options (or defaults):
|
|
|
405
411
|
</div>
|
|
406
412
|
</div>
|
|
407
413
|
|
|
408
|
-
<div id="method-
|
|
409
|
-
<a name="
|
|
414
|
+
<div id="method-M000105" class="method-detail">
|
|
415
|
+
<a name="M000105"></a>
|
|
410
416
|
|
|
411
417
|
<div class="method-heading">
|
|
412
|
-
<a href="Configurator.src/
|
|
413
|
-
onclick="popupCode('Configurator.src/
|
|
418
|
+
<a href="Configurator.src/M000105.html" target="Code" class="method-signature"
|
|
419
|
+
onclick="popupCode('Configurator.src/M000105.html');return false;">
|
|
414
420
|
<span class="method-name">load_mime_map</span><span class="method-args">(file, mime={})</span>
|
|
415
421
|
</a>
|
|
416
422
|
</div>
|
|
@@ -427,12 +433,12 @@ MIME types map is organized.
|
|
|
427
433
|
</div>
|
|
428
434
|
</div>
|
|
429
435
|
|
|
430
|
-
<div id="method-
|
|
431
|
-
<a name="
|
|
436
|
+
<div id="method-M000103" class="method-detail">
|
|
437
|
+
<a name="M000103"></a>
|
|
432
438
|
|
|
433
439
|
<div class="method-heading">
|
|
434
|
-
<a href="Configurator.src/
|
|
435
|
-
onclick="popupCode('Configurator.src/
|
|
440
|
+
<a href="Configurator.src/M000103.html" target="Code" class="method-signature"
|
|
441
|
+
onclick="popupCode('Configurator.src/M000103.html');return false;">
|
|
436
442
|
<span class="method-name">load_plugins</span><span class="method-args">(options={})</span>
|
|
437
443
|
</a>
|
|
438
444
|
</div>
|
|
@@ -447,12 +453,12 @@ determining the dependencies.
|
|
|
447
453
|
</div>
|
|
448
454
|
</div>
|
|
449
455
|
|
|
450
|
-
<div id="method-
|
|
451
|
-
<a name="
|
|
456
|
+
<div id="method-M000104" class="method-detail">
|
|
457
|
+
<a name="M000104"></a>
|
|
452
458
|
|
|
453
459
|
<div class="method-heading">
|
|
454
|
-
<a href="Configurator.src/
|
|
455
|
-
onclick="popupCode('Configurator.src/
|
|
460
|
+
<a href="Configurator.src/M000104.html" target="Code" class="method-signature"
|
|
461
|
+
onclick="popupCode('Configurator.src/M000104.html');return false;">
|
|
456
462
|
<span class="method-name">load_yaml</span><span class="method-args">(file, default={})</span>
|
|
457
463
|
</a>
|
|
458
464
|
</div>
|
|
@@ -464,55 +470,56 @@ Easy way to load a YAML file and apply default settings.
|
|
|
464
470
|
</div>
|
|
465
471
|
</div>
|
|
466
472
|
|
|
467
|
-
<div id="method-
|
|
468
|
-
<a name="
|
|
473
|
+
<div id="method-M000114" class="method-detail">
|
|
474
|
+
<a name="M000114"></a>
|
|
469
475
|
|
|
470
476
|
<div class="method-heading">
|
|
471
|
-
<a href="Configurator.src/
|
|
472
|
-
onclick="popupCode('Configurator.src/
|
|
477
|
+
<a href="Configurator.src/M000114.html" target="Code" class="method-signature"
|
|
478
|
+
onclick="popupCode('Configurator.src/M000114.html');return false;">
|
|
473
479
|
<span class="method-name">log</span><span class="method-args">(msg)</span>
|
|
474
480
|
</a>
|
|
475
481
|
</div>
|
|
476
482
|
|
|
477
483
|
<div class="method-description">
|
|
478
484
|
<p>
|
|
479
|
-
Logs a simple message to STDERR (or the mongrel
|
|
485
|
+
Logs a simple message to STDERR (or the mongrel <a
|
|
486
|
+
href="Configurator.html#M000114">log</a> if in daemon mode).
|
|
480
487
|
</p>
|
|
481
488
|
</div>
|
|
482
489
|
</div>
|
|
483
490
|
|
|
484
|
-
<div id="method-
|
|
485
|
-
<a name="
|
|
491
|
+
<div id="method-M000106" class="method-detail">
|
|
492
|
+
<a name="M000106"></a>
|
|
486
493
|
|
|
487
494
|
<div class="method-heading">
|
|
488
|
-
<a href="Configurator.src/
|
|
489
|
-
onclick="popupCode('Configurator.src/
|
|
495
|
+
<a href="Configurator.src/M000106.html" target="Code" class="method-signature"
|
|
496
|
+
onclick="popupCode('Configurator.src/M000106.html');return false;">
|
|
490
497
|
<span class="method-name">plugin</span><span class="method-args">(name, options={})</span>
|
|
491
498
|
</a>
|
|
492
499
|
</div>
|
|
493
500
|
|
|
494
501
|
<div class="method-description">
|
|
495
502
|
<p>
|
|
496
|
-
Loads and creates a plugin for you
|
|
497
|
-
|
|
498
|
-
to passing them in.
|
|
503
|
+
Loads and creates a <a href="Configurator.html#M000106">plugin</a> for you
|
|
504
|
+
based on the given name and configured with the selected options. The
|
|
505
|
+
options are merged with the defaults prior to passing them in.
|
|
499
506
|
</p>
|
|
500
507
|
</div>
|
|
501
508
|
</div>
|
|
502
509
|
|
|
503
|
-
<div id="method-
|
|
504
|
-
<a name="
|
|
510
|
+
<div id="method-M000107" class="method-detail">
|
|
511
|
+
<a name="M000107"></a>
|
|
505
512
|
|
|
506
513
|
<div class="method-heading">
|
|
507
|
-
<a href="Configurator.src/
|
|
508
|
-
onclick="popupCode('Configurator.src/
|
|
514
|
+
<a href="Configurator.src/M000107.html" target="Code" class="method-signature"
|
|
515
|
+
onclick="popupCode('Configurator.src/M000107.html');return false;">
|
|
509
516
|
<span class="method-name">redirect</span><span class="method-args">(from, pattern, replacement = nil, &block)</span>
|
|
510
517
|
</a>
|
|
511
518
|
</div>
|
|
512
519
|
|
|
513
520
|
<div class="method-description">
|
|
514
521
|
<p>
|
|
515
|
-
|
|
522
|
+
Lets you do redirects easily as described in <a
|
|
516
523
|
href="RedirectHandler.html">Mongrel::RedirectHandler</a>. You use it inside
|
|
517
524
|
the configurator like this:
|
|
518
525
|
</p>
|
|
@@ -524,12 +531,26 @@ the configurator like this:
|
|
|
524
531
|
</div>
|
|
525
532
|
</div>
|
|
526
533
|
|
|
527
|
-
<div id="method-
|
|
528
|
-
<a name="
|
|
534
|
+
<div id="method-M000095" class="method-detail">
|
|
535
|
+
<a name="M000095"></a>
|
|
529
536
|
|
|
530
537
|
<div class="method-heading">
|
|
531
|
-
<a href="Configurator.src/
|
|
532
|
-
onclick="popupCode('Configurator.src/
|
|
538
|
+
<a href="Configurator.src/M000095.html" target="Code" class="method-signature"
|
|
539
|
+
onclick="popupCode('Configurator.src/M000095.html');return false;">
|
|
540
|
+
<span class="method-name">remove_pid_file</span><span class="method-args">()</span>
|
|
541
|
+
</a>
|
|
542
|
+
</div>
|
|
543
|
+
|
|
544
|
+
<div class="method-description">
|
|
545
|
+
</div>
|
|
546
|
+
</div>
|
|
547
|
+
|
|
548
|
+
<div id="method-M000099" class="method-detail">
|
|
549
|
+
<a name="M000099"></a>
|
|
550
|
+
|
|
551
|
+
<div class="method-heading">
|
|
552
|
+
<a href="Configurator.src/M000099.html" target="Code" class="method-signature"
|
|
553
|
+
onclick="popupCode('Configurator.src/M000099.html');return false;">
|
|
533
554
|
<span class="method-name">resolve_defaults</span><span class="method-args">(options)</span>
|
|
534
555
|
</a>
|
|
535
556
|
</div>
|
|
@@ -542,32 +563,32 @@ used internally.
|
|
|
542
563
|
</div>
|
|
543
564
|
</div>
|
|
544
565
|
|
|
545
|
-
<div id="method-
|
|
546
|
-
<a name="
|
|
566
|
+
<div id="method-M000108" class="method-detail">
|
|
567
|
+
<a name="M000108"></a>
|
|
547
568
|
|
|
548
569
|
<div class="method-heading">
|
|
549
|
-
<a href="Configurator.src/
|
|
550
|
-
onclick="popupCode('Configurator.src/
|
|
570
|
+
<a href="Configurator.src/M000108.html" target="Code" class="method-signature"
|
|
571
|
+
onclick="popupCode('Configurator.src/M000108.html');return false;">
|
|
551
572
|
<span class="method-name">run</span><span class="method-args">()</span>
|
|
552
573
|
</a>
|
|
553
574
|
</div>
|
|
554
575
|
|
|
555
576
|
<div class="method-description">
|
|
556
577
|
<p>
|
|
557
|
-
Works like a meta run method which
|
|
558
|
-
listeners. Use the <a
|
|
559
|
-
href="Configurator.html#
|
|
578
|
+
Works like a meta <a href="Configurator.html#M000108">run</a> method which
|
|
579
|
+
goes through all the configured listeners. Use the <a
|
|
580
|
+
href="Configurator.html#M000110">Configurator.join</a> method to prevent
|
|
560
581
|
Ruby from exiting until each one is done.
|
|
561
582
|
</p>
|
|
562
583
|
</div>
|
|
563
584
|
</div>
|
|
564
585
|
|
|
565
|
-
<div id="method-
|
|
566
|
-
<a name="
|
|
586
|
+
<div id="method-M000112" class="method-detail">
|
|
587
|
+
<a name="M000112"></a>
|
|
567
588
|
|
|
568
589
|
<div class="method-heading">
|
|
569
|
-
<a href="Configurator.src/
|
|
570
|
-
onclick="popupCode('Configurator.src/
|
|
590
|
+
<a href="Configurator.src/M000112.html" target="Code" class="method-signature"
|
|
591
|
+
onclick="popupCode('Configurator.src/M000112.html');return false;">
|
|
571
592
|
<span class="method-name">run_config</span><span class="method-args">(script)</span>
|
|
572
593
|
</a>
|
|
573
594
|
</div>
|
|
@@ -583,12 +604,12 @@ href="Configurator.html">Configurator</a> statements.
|
|
|
583
604
|
</div>
|
|
584
605
|
</div>
|
|
585
606
|
|
|
586
|
-
<div id="method-
|
|
587
|
-
<a name="
|
|
607
|
+
<div id="method-M000113" class="method-detail">
|
|
608
|
+
<a name="M000113"></a>
|
|
588
609
|
|
|
589
610
|
<div class="method-heading">
|
|
590
|
-
<a href="Configurator.src/
|
|
591
|
-
onclick="popupCode('Configurator.src/
|
|
611
|
+
<a href="Configurator.src/M000113.html" target="Code" class="method-signature"
|
|
612
|
+
onclick="popupCode('Configurator.src/M000113.html');return false;">
|
|
592
613
|
<span class="method-name">setup_signals</span><span class="method-args">(options={})</span>
|
|
593
614
|
</a>
|
|
594
615
|
</div>
|
|
@@ -596,14 +617,14 @@ href="Configurator.html">Configurator</a> statements.
|
|
|
596
617
|
<div class="method-description">
|
|
597
618
|
<p>
|
|
598
619
|
Sets up the standard signal handlers that are used on most Ruby It only
|
|
599
|
-
configures if the platform is not win32 and doesn&#
|
|
620
|
+
configures if the platform is not win32 and doesn‘t do a HUP signal
|
|
600
621
|
since this is typically framework specific.
|
|
601
622
|
</p>
|
|
602
623
|
<p>
|
|
603
624
|
Requires a :pid_file option given to <a
|
|
604
|
-
href="Configurator.html#
|
|
625
|
+
href="Configurator.html#M000093">Configurator.new</a> to indicate a file to
|
|
605
626
|
delete. It sets the MongrelConfig.needs_restart attribute if the start
|
|
606
|
-
command should reload. It&#
|
|
627
|
+
command should reload. It‘s up to you to detect this and do whatever
|
|
607
628
|
is needed for a "restart".
|
|
608
629
|
</p>
|
|
609
630
|
<p>
|
|
@@ -612,31 +633,32 @@ This command is safely ignored if the platform is win32 (with a warning)
|
|
|
612
633
|
</div>
|
|
613
634
|
</div>
|
|
614
635
|
|
|
615
|
-
<div id="method-
|
|
616
|
-
<a name="
|
|
636
|
+
<div id="method-M000109" class="method-detail">
|
|
637
|
+
<a name="M000109"></a>
|
|
617
638
|
|
|
618
639
|
<div class="method-heading">
|
|
619
|
-
<a href="Configurator.src/
|
|
620
|
-
onclick="popupCode('Configurator.src/
|
|
640
|
+
<a href="Configurator.src/M000109.html" target="Code" class="method-signature"
|
|
641
|
+
onclick="popupCode('Configurator.src/M000109.html');return false;">
|
|
621
642
|
<span class="method-name">stop</span><span class="method-args">(needs_restart=false)</span>
|
|
622
643
|
</a>
|
|
623
644
|
</div>
|
|
624
645
|
|
|
625
646
|
<div class="method-description">
|
|
626
647
|
<p>
|
|
627
|
-
Calls .stop on all the configured
|
|
628
|
-
|
|
648
|
+
Calls .<a href="Configurator.html#M000109">stop</a> on all the configured
|
|
649
|
+
listeners so they <a href="Configurator.html#M000109">stop</a> processing
|
|
650
|
+
requests (gracefully). By default it assumes that you don‘t want to
|
|
629
651
|
restart.
|
|
630
652
|
</p>
|
|
631
653
|
</div>
|
|
632
654
|
</div>
|
|
633
655
|
|
|
634
|
-
<div id="method-
|
|
635
|
-
<a name="
|
|
656
|
+
<div id="method-M000101" class="method-detail">
|
|
657
|
+
<a name="M000101"></a>
|
|
636
658
|
|
|
637
659
|
<div class="method-heading">
|
|
638
|
-
<a href="Configurator.src/
|
|
639
|
-
onclick="popupCode('Configurator.src/
|
|
660
|
+
<a href="Configurator.src/M000101.html" target="Code" class="method-signature"
|
|
661
|
+
onclick="popupCode('Configurator.src/M000101.html');return false;">
|
|
640
662
|
<span class="method-name">uri</span><span class="method-args">(location, options={})</span>
|
|
641
663
|
</a>
|
|
642
664
|
</div>
|
|
@@ -644,9 +666,10 @@ restart.
|
|
|
644
666
|
<div class="method-description">
|
|
645
667
|
<p>
|
|
646
668
|
Called inside a <a
|
|
647
|
-
href="Configurator.html#
|
|
648
|
-
to add URI->handler mappings for that
|
|
649
|
-
|
|
669
|
+
href="Configurator.html#M000100">Configurator.listener</a> block in order
|
|
670
|
+
to add URI->handler mappings for that <a
|
|
671
|
+
href="Configurator.html#M000100">listener</a>. Use this as many times as
|
|
672
|
+
you like. It expects the following options or defaults:
|
|
650
673
|
</p>
|
|
651
674
|
<ul>
|
|
652
675
|
<li>:handler => <a href="HttpHandler.html">HttpHandler</a> — Handler
|
|
@@ -661,19 +684,19 @@ handler.
|
|
|
661
684
|
</div>
|
|
662
685
|
</div>
|
|
663
686
|
|
|
664
|
-
<div id="method-
|
|
665
|
-
<a name="
|
|
687
|
+
<div id="method-M000096" class="method-detail">
|
|
688
|
+
<a name="M000096"></a>
|
|
666
689
|
|
|
667
690
|
<div class="method-heading">
|
|
668
|
-
<a href="Configurator.src/
|
|
669
|
-
onclick="popupCode('Configurator.src/
|
|
691
|
+
<a href="Configurator.src/M000096.html" target="Code" class="method-signature"
|
|
692
|
+
onclick="popupCode('Configurator.src/M000096.html');return false;">
|
|
670
693
|
<span class="method-name">write_pid_file</span><span class="method-args">()</span>
|
|
671
694
|
</a>
|
|
672
695
|
</div>
|
|
673
696
|
|
|
674
697
|
<div class="method-description">
|
|
675
698
|
<p>
|
|
676
|
-
Writes the PID file but only if we&#
|
|
699
|
+
Writes the PID file but only if we‘re on windows.
|
|
677
700
|
</p>
|
|
678
701
|
</div>
|
|
679
702
|
</div>
|