mongrel 0.3.13.1 → 0.3.13.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +3 -1
- data/doc/rdoc/classes/Mongrel.html +3 -2
- data/doc/rdoc/classes/Mongrel/CGIWrapper.html +49 -49
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000101.html +11 -14
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000102.html +34 -12
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000103.html +21 -5
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000104.html +14 -5
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000105.html +12 -5
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000106.html +5 -6
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000107.html +18 -0
- data/doc/rdoc/classes/Mongrel/{URIClassifier.src/M000090.html → CGIWrapper.src/M000108.html} +5 -5
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000109.html +19 -0
- data/doc/rdoc/classes/Mongrel/Camping.html +5 -5
- data/doc/rdoc/classes/Mongrel/Camping.src/{M000047.html → M000048.html} +0 -0
- data/doc/rdoc/classes/Mongrel/Camping/CampingHandler.html +10 -10
- data/doc/rdoc/classes/Mongrel/Camping/CampingHandler.src/M000049.html +5 -38
- data/doc/rdoc/classes/Mongrel/Camping/CampingHandler.src/M000050.html +51 -0
- data/doc/rdoc/classes/Mongrel/Command/Base.html +65 -65
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000026.html +11 -29
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000027.html +29 -5
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000028.html +5 -5
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000029.html +5 -5
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000030.html +5 -5
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000031.html +5 -9
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000032.html +9 -5
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000033.html +5 -5
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000034.html +5 -5
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000035.html +5 -11
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000036.html +11 -11
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000037.html +11 -5
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000038.html +18 -0
- data/doc/rdoc/classes/Mongrel/Command/Registry.html +15 -15
- data/doc/rdoc/classes/Mongrel/Command/Registry.src/M000039.html +7 -12
- data/doc/rdoc/classes/Mongrel/Command/Registry.src/M000040.html +12 -37
- data/doc/rdoc/classes/Mongrel/Command/Registry.src/M000041.html +50 -0
- data/doc/rdoc/classes/Mongrel/Configurator.html +120 -114
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000110.html +14 -7
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000111.html +18 -10
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000112.html +7 -5
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000113.html +7 -21
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000114.html +10 -6
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000115.html +5 -17
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000116.html +25 -20
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000117.html +6 -5
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000118.html +17 -11
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000119.html +20 -6
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000120.html +5 -5
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000121.html +11 -9
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000122.html +6 -12
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000123.html +5 -5
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000124.html +9 -22
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000125.html +12 -5
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000126.html +5 -20
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000127.html +22 -5
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000128.html +18 -0
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000129.html +33 -0
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000130.html +18 -0
- data/doc/rdoc/classes/Mongrel/Const.html +1 -1
- data/doc/rdoc/classes/Mongrel/DeflateFilter.html +10 -10
- data/doc/rdoc/classes/Mongrel/DeflateFilter.src/{M000096.html → M000099.html} +5 -5
- data/doc/rdoc/classes/Mongrel/DeflateFilter.src/{M000097.html → M000100.html} +14 -14
- data/doc/rdoc/classes/Mongrel/DirHandler.html +31 -31
- data/doc/rdoc/classes/Mongrel/DirHandler.src/M000058.html +8 -30
- data/doc/rdoc/classes/Mongrel/DirHandler.src/M000059.html +30 -29
- data/doc/rdoc/classes/Mongrel/DirHandler.src/M000060.html +29 -50
- data/doc/rdoc/classes/Mongrel/DirHandler.src/M000061.html +50 -26
- data/doc/rdoc/classes/Mongrel/DirHandler.src/M000062.html +26 -5
- data/doc/rdoc/classes/Mongrel/DirHandler.src/M000063.html +18 -0
- data/doc/rdoc/classes/Mongrel/Error404Handler.html +10 -10
- data/doc/rdoc/classes/Mongrel/Error404Handler.src/{M000128.html → M000131.html} +4 -4
- data/doc/rdoc/classes/Mongrel/Error404Handler.src/{M000129.html → M000132.html} +4 -4
- data/doc/rdoc/classes/Mongrel/HeaderOut.html +10 -10
- data/doc/rdoc/classes/Mongrel/HeaderOut.src/{M000070.html → M000072.html} +4 -4
- data/doc/rdoc/classes/Mongrel/HeaderOut.src/{M000071.html → M000073.html} +4 -4
- data/doc/rdoc/classes/Mongrel/HttpHandler.html +31 -10
- data/doc/rdoc/classes/Mongrel/HttpHandler.src/{M000076.html → M000078.html} +0 -0
- data/doc/rdoc/classes/Mongrel/HttpHandler.src/M000079.html +17 -0
- data/doc/rdoc/classes/Mongrel/HttpHandler.src/{M000077.html → M000080.html} +3 -3
- data/doc/rdoc/classes/Mongrel/HttpHandlerPlugin.html +25 -10
- data/doc/rdoc/classes/Mongrel/HttpHandlerPlugin.src/M000022.html +3 -3
- data/doc/rdoc/classes/Mongrel/HttpHandlerPlugin.src/M000023.html +4 -6
- data/doc/rdoc/classes/Mongrel/HttpHandlerPlugin.src/M000024.html +6 -4
- data/doc/rdoc/classes/Mongrel/HttpHandlerPlugin.src/M000025.html +17 -0
- data/doc/rdoc/classes/Mongrel/HttpParser.html +35 -35
- data/doc/rdoc/classes/Mongrel/HttpParser.src/M000051.html +5 -6
- data/doc/rdoc/classes/Mongrel/HttpParser.src/M000052.html +7 -7
- data/doc/rdoc/classes/Mongrel/HttpParser.src/M000053.html +7 -37
- data/doc/rdoc/classes/Mongrel/HttpParser.src/M000054.html +37 -5
- data/doc/rdoc/classes/Mongrel/HttpParser.src/M000055.html +5 -5
- data/doc/rdoc/classes/Mongrel/HttpParser.src/M000056.html +5 -6
- data/doc/rdoc/classes/Mongrel/HttpParser.src/{M000050.html → M000057.html} +6 -6
- data/doc/rdoc/classes/Mongrel/HttpRequest.html +30 -21
- data/doc/rdoc/classes/Mongrel/HttpRequest.src/M000138.html +43 -19
- data/doc/rdoc/classes/Mongrel/HttpRequest.src/{M000136.html → M000139.html} +6 -6
- data/doc/rdoc/classes/Mongrel/HttpRequest.src/{M000137.html → M000140.html} +6 -6
- data/doc/rdoc/classes/Mongrel/HttpRequest.src/M000141.html +32 -0
- data/doc/rdoc/classes/Mongrel/HttpResponse.html +61 -61
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000081.html +12 -9
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000082.html +7 -9
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000083.html +12 -9
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000084.html +9 -18
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000085.html +9 -8
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000086.html +9 -7
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000087.html +18 -7
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000088.html +8 -7
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000089.html +7 -5
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000090.html +20 -0
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000091.html +20 -0
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000092.html +18 -0
- data/doc/rdoc/classes/Mongrel/HttpServer.html +63 -41
- data/doc/rdoc/classes/Mongrel/HttpServer.src/M000064.html +12 -76
- data/doc/rdoc/classes/Mongrel/HttpServer.src/M000065.html +74 -13
- data/doc/rdoc/classes/Mongrel/HttpServer.src/M000066.html +18 -50
- data/doc/rdoc/classes/Mongrel/HttpServer.src/M000067.html +8 -21
- data/doc/rdoc/classes/Mongrel/HttpServer.src/M000068.html +38 -5
- data/doc/rdoc/classes/Mongrel/HttpServer.src/M000069.html +21 -9
- data/doc/rdoc/classes/Mongrel/HttpServer.src/M000070.html +18 -0
- data/doc/rdoc/classes/Mongrel/HttpServer.src/M000071.html +22 -0
- data/doc/rdoc/classes/Mongrel/Rails/RailsConfigurator.html +15 -15
- data/doc/rdoc/classes/Mongrel/Rails/RailsConfigurator.src/M000042.html +26 -12
- data/doc/rdoc/classes/Mongrel/Rails/RailsConfigurator.src/M000043.html +12 -13
- data/doc/rdoc/classes/Mongrel/Rails/RailsConfigurator.src/M000044.html +26 -0
- data/doc/rdoc/classes/Mongrel/Rails/RailsHandler.html +15 -15
- data/doc/rdoc/classes/Mongrel/Rails/RailsHandler.src/M000045.html +9 -38
- data/doc/rdoc/classes/Mongrel/Rails/RailsHandler.src/M000046.html +38 -10
- data/doc/rdoc/classes/Mongrel/Rails/RailsHandler.src/M000047.html +23 -0
- data/doc/rdoc/classes/Mongrel/RedirectHandler.html +10 -10
- data/doc/rdoc/classes/Mongrel/RedirectHandler.src/{M000133.html → M000136.html} +8 -8
- data/doc/rdoc/classes/Mongrel/RedirectHandler.src/{M000134.html → M000137.html} +13 -13
- data/doc/rdoc/classes/Mongrel/StatisticsFilter.html +16 -16
- data/doc/rdoc/classes/Mongrel/StatisticsFilter.src/{M000130.html → M000133.html} +10 -10
- data/doc/rdoc/classes/Mongrel/StatisticsFilter.src/{M000131.html → M000134.html} +10 -10
- data/doc/rdoc/classes/Mongrel/StatisticsFilter.src/{M000132.html → M000135.html} +4 -4
- data/doc/rdoc/classes/Mongrel/StatusHandler.html +20 -20
- data/doc/rdoc/classes/Mongrel/StatusHandler.src/M000074.html +5 -29
- data/doc/rdoc/classes/Mongrel/StatusHandler.src/M000075.html +11 -7
- data/doc/rdoc/classes/Mongrel/StatusHandler.src/M000076.html +42 -0
- data/doc/rdoc/classes/Mongrel/StatusHandler.src/M000077.html +20 -0
- data/doc/rdoc/classes/Mongrel/TimeoutError.html +117 -0
- data/doc/rdoc/classes/Mongrel/URIClassifier.html +30 -30
- data/doc/rdoc/classes/Mongrel/URIClassifier.src/M000093.html +5 -38
- data/doc/rdoc/classes/Mongrel/URIClassifier.src/M000094.html +5 -23
- data/doc/rdoc/classes/Mongrel/URIClassifier.src/M000095.html +16 -60
- data/doc/rdoc/classes/Mongrel/URIClassifier.src/M000096.html +51 -0
- data/doc/rdoc/classes/Mongrel/URIClassifier.src/M000097.html +36 -0
- data/doc/rdoc/classes/Mongrel/URIClassifier.src/M000098.html +83 -0
- data/doc/rdoc/classes/RequestLog/Access.html +5 -5
- data/doc/rdoc/classes/RequestLog/Access.src/{M000139.html → M000142.html} +0 -0
- data/doc/rdoc/classes/RequestLog/Files.html +5 -5
- data/doc/rdoc/classes/RequestLog/Files.src/{M000140.html → M000143.html} +0 -0
- data/doc/rdoc/classes/RequestLog/Objects.html +5 -5
- data/doc/rdoc/classes/RequestLog/Objects.src/{M000142.html → M000145.html} +0 -0
- data/doc/rdoc/classes/RequestLog/Params.html +5 -5
- data/doc/rdoc/classes/RequestLog/Params.src/{M000143.html → M000146.html} +0 -0
- data/doc/rdoc/classes/RequestLog/Threads.html +5 -5
- data/doc/rdoc/classes/RequestLog/Threads.src/{M000141.html → M000144.html} +0 -0
- data/doc/rdoc/created.rid +1 -1
- 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/debug_rb.html +2 -2
- data/doc/rdoc/files/lib/mongrel/handlers_rb.html +1 -1
- data/doc/rdoc/files/lib/mongrel/init_rb.html +2 -2
- data/doc/rdoc/files/lib/mongrel/rails_rb.html +2 -2
- 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 +2 -2
- data/doc/rdoc/fr_class_index.html +1 -0
- data/doc/rdoc/fr_method_index.html +125 -122
- data/ext/http11/http11.c +2 -2
- data/ext/http11/http11_parser.c +1 -1
- data/ext/http11/http11_parser.h +1 -1
- data/lib/mongrel.rb +70 -53
- data/lib/mongrel/camping.rb +1 -1
- data/lib/mongrel/cgi.rb +1 -1
- data/lib/mongrel/command.rb +1 -1
- data/lib/mongrel/debug.rb +1 -1
- data/lib/mongrel/handlers.rb +10 -1
- data/lib/mongrel/init.rb +1 -1
- data/lib/mongrel/rails.rb +1 -1
- data/lib/mongrel/stats.rb +1 -1
- data/lib/mongrel/tcphack.rb +1 -1
- data/test/test_command.rb +1 -1
- data/test/test_conditional.rb +1 -1
- data/test/test_configurator.rb +1 -1
- data/test/test_debug.rb +1 -1
- data/test/test_handlers.rb +1 -1
- data/test/test_http11.rb +1 -1
- data/test/test_response.rb +1 -1
- data/test/test_stats.rb +1 -1
- data/test/test_uriclassifier.rb +1 -1
- data/test/test_ws.rb +1 -1
- data/tools/trickletest.rb +28 -20
- metadata +50 -46
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000098.html +0 -24
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000099.html +0 -47
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000100.html +0 -34
- data/doc/rdoc/classes/Mongrel/Camping/CampingHandler.src/M000048.html +0 -18
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000025.html +0 -24
- data/doc/rdoc/classes/Mongrel/Command/Registry.src/M000038.html +0 -20
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000107.html +0 -29
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000108.html +0 -31
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000109.html +0 -20
- data/doc/rdoc/classes/Mongrel/DirHandler.src/M000057.html +0 -21
- data/doc/rdoc/classes/Mongrel/HttpRequest.src/M000135.html +0 -52
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000078.html +0 -25
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000079.html +0 -20
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000080.html +0 -25
- data/doc/rdoc/classes/Mongrel/HttpServer.src/M000063.html +0 -25
- data/doc/rdoc/classes/Mongrel/Rails/RailsConfigurator.src/M000041.html +0 -39
- data/doc/rdoc/classes/Mongrel/Rails/RailsHandler.src/M000044.html +0 -22
- data/doc/rdoc/classes/Mongrel/StatusHandler.src/M000072.html +0 -18
- data/doc/rdoc/classes/Mongrel/StatusHandler.src/M000073.html +0 -24
- data/doc/rdoc/classes/Mongrel/URIClassifier.src/M000091.html +0 -18
- data/doc/rdoc/classes/Mongrel/URIClassifier.src/M000092.html +0 -39
@@ -0,0 +1,50 @@
|
|
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 182</span>
|
14
|
+
182: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">run</span>(<span class="ruby-identifier">args</span>)
|
15
|
+
183: <span class="ruby-comment cmt"># find the command</span>
|
16
|
+
184: <span class="ruby-identifier">cmd_name</span> = <span class="ruby-identifier">args</span>.<span class="ruby-identifier">shift</span>
|
17
|
+
185:
|
18
|
+
186: <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
|
+
187: <span class="ruby-identifier">print_command_list</span>
|
20
|
+
188: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span>
|
21
|
+
189: <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
|
+
190: <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
|
+
191: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span>
|
24
|
+
192: <span class="ruby-keyword kw">end</span>
|
25
|
+
193:
|
26
|
+
194: <span class="ruby-comment cmt"># command exists, set it up and validate it</span>
|
27
|
+
195: <span class="ruby-keyword kw">begin</span>
|
28
|
+
196: <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>)
|
29
|
+
197: <span class="ruby-keyword kw">rescue</span>
|
30
|
+
198: <span class="ruby-constant">STDERR</span>.<span class="ruby-identifier">puts</span> <span class="ruby-value str">"INVALID COMMAND: #$!"</span>
|
31
|
+
199: <span class="ruby-identifier">print_command_list</span>
|
32
|
+
200: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span>
|
33
|
+
201: <span class="ruby-keyword kw">end</span>
|
34
|
+
202:
|
35
|
+
203: <span class="ruby-comment cmt"># Normally the command is NOT valid right after being created</span>
|
36
|
+
204: <span class="ruby-comment cmt"># but sometimes (like with -h or -v) there's no further processing</span>
|
37
|
+
205: <span class="ruby-comment cmt"># needed so the command is already valid so we can skip it.</span>
|
38
|
+
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>
|
39
|
+
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>
|
40
|
+
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>
|
41
|
+
209: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span>
|
42
|
+
210: <span class="ruby-keyword kw">else</span>
|
43
|
+
211: <span class="ruby-identifier">command</span>.<span class="ruby-identifier">run</span>
|
44
|
+
212: <span class="ruby-keyword kw">end</span>
|
45
|
+
213: <span class="ruby-keyword kw">end</span>
|
46
|
+
214:
|
47
|
+
215: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span>
|
48
|
+
216: <span class="ruby-keyword kw">end</span></pre>
|
49
|
+
</body>
|
50
|
+
</html>
|
@@ -106,7 +106,7 @@ just a hash of default parameters that all server or uri calls receive.
|
|
106
106
|
</p>
|
107
107
|
<p>
|
108
108
|
When you are inside the block after <a
|
109
|
-
href="Configurator.html#
|
109
|
+
href="Configurator.html#M000110">Mongrel::Configurator.new</a> you can
|
110
110
|
simply call functions that are part of <a
|
111
111
|
href="Configurator.html">Configurator</a> (like server, uri, daemonize,
|
112
112
|
etc) without having to refer to anything else. You can also call these
|
@@ -132,27 +132,27 @@ want. These are kept in a map config.listeners so you can get to them.
|
|
132
132
|
<h3 class="section-bar">Methods</h3>
|
133
133
|
|
134
134
|
<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="#
|
135
|
+
<a href="#M000111">change_privilege</a>
|
136
|
+
<a href="#M000114">cloaker</a>
|
137
|
+
<a href="#M000113">cloaking_class</a>
|
138
|
+
<a href="#M000118">daemonize</a>
|
139
|
+
<a href="#M000127">debug</a>
|
140
|
+
<a href="#M000126">join</a>
|
141
|
+
<a href="#M000116">listener</a>
|
142
|
+
<a href="#M000121">load_mime_map</a>
|
143
|
+
<a href="#M000119">load_plugins</a>
|
144
|
+
<a href="#M000120">load_yaml</a>
|
145
|
+
<a href="#M000130">log</a>
|
146
|
+
<a href="#M000110">new</a>
|
147
|
+
<a href="#M000122">plugin</a>
|
148
|
+
<a href="#M000123">redirect</a>
|
149
|
+
<a href="#M000115">resolve_defaults</a>
|
150
|
+
<a href="#M000124">run</a>
|
151
|
+
<a href="#M000128">run_config</a>
|
152
|
+
<a href="#M000129">setup_signals</a>
|
153
|
+
<a href="#M000125">stop</a>
|
154
|
+
<a href="#M000117">uri</a>
|
155
|
+
<a href="#M000112">write_pid_file</a>
|
156
156
|
</div>
|
157
157
|
</div>
|
158
158
|
|
@@ -197,12 +197,12 @@ want. These are kept in a map config.listeners so you can get to them.
|
|
197
197
|
<div id="methods">
|
198
198
|
<h3 class="section-bar">Public Class methods</h3>
|
199
199
|
|
200
|
-
<div id="method-
|
201
|
-
<a name="
|
200
|
+
<div id="method-M000110" class="method-detail">
|
201
|
+
<a name="M000110"></a>
|
202
202
|
|
203
203
|
<div class="method-heading">
|
204
|
-
<a href="Configurator.src/
|
205
|
-
onclick="popupCode('Configurator.src/
|
204
|
+
<a href="Configurator.src/M000110.html" target="Code" class="method-signature"
|
205
|
+
onclick="popupCode('Configurator.src/M000110.html');return false;">
|
206
206
|
<span class="method-name">new</span><span class="method-args">(defaults={}, &blk)</span>
|
207
207
|
</a>
|
208
208
|
</div>
|
@@ -216,12 +216,12 @@ You pass in initial defaults and then a block to continue configuring.
|
|
216
216
|
|
217
217
|
<h3 class="section-bar">Public Instance methods</h3>
|
218
218
|
|
219
|
-
<div id="method-
|
220
|
-
<a name="
|
219
|
+
<div id="method-M000111" class="method-detail">
|
220
|
+
<a name="M000111"></a>
|
221
221
|
|
222
222
|
<div class="method-heading">
|
223
|
-
<a href="Configurator.src/
|
224
|
-
onclick="popupCode('Configurator.src/
|
223
|
+
<a href="Configurator.src/M000111.html" target="Code" class="method-signature"
|
224
|
+
onclick="popupCode('Configurator.src/M000111.html');return false;">
|
225
225
|
<span class="method-name">change_privilege</span><span class="method-args">(user, group)</span>
|
226
226
|
</a>
|
227
227
|
</div>
|
@@ -233,12 +233,12 @@ Change privilege of the process to specified user and group.
|
|
233
233
|
</div>
|
234
234
|
</div>
|
235
235
|
|
236
|
-
<div id="method-
|
237
|
-
<a name="
|
236
|
+
<div id="method-M000114" class="method-detail">
|
237
|
+
<a name="M000114"></a>
|
238
238
|
|
239
239
|
<div class="method-heading">
|
240
|
-
<a href="Configurator.src/
|
241
|
-
onclick="popupCode('Configurator.src/
|
240
|
+
<a href="Configurator.src/M000114.html" target="Code" class="method-signature"
|
241
|
+
onclick="popupCode('Configurator.src/M000114.html');return false;">
|
242
242
|
<span class="method-name">cloaker</span><span class="method-args">(&blk)</span>
|
243
243
|
</a>
|
244
244
|
</div>
|
@@ -250,12 +250,12 @@ Do not call this. You were warned.
|
|
250
250
|
</div>
|
251
251
|
</div>
|
252
252
|
|
253
|
-
<div id="method-
|
254
|
-
<a name="
|
253
|
+
<div id="method-M000113" class="method-detail">
|
254
|
+
<a name="M000113"></a>
|
255
255
|
|
256
256
|
<div class="method-heading">
|
257
|
-
<a href="Configurator.src/
|
258
|
-
onclick="popupCode('Configurator.src/
|
257
|
+
<a href="Configurator.src/M000113.html" target="Code" class="method-signature"
|
258
|
+
onclick="popupCode('Configurator.src/M000113.html');return false;">
|
259
259
|
<span class="method-name">cloaking_class</span><span class="method-args">()</span>
|
260
260
|
</a>
|
261
261
|
</div>
|
@@ -267,12 +267,12 @@ generates a class for cloaking the current self and making the DSL nicer
|
|
267
267
|
</div>
|
268
268
|
</div>
|
269
269
|
|
270
|
-
<div id="method-
|
271
|
-
<a name="
|
270
|
+
<div id="method-M000118" class="method-detail">
|
271
|
+
<a name="M000118"></a>
|
272
272
|
|
273
273
|
<div class="method-heading">
|
274
|
-
<a href="Configurator.src/
|
275
|
-
onclick="popupCode('Configurator.src/
|
274
|
+
<a href="Configurator.src/M000118.html" target="Code" class="method-signature"
|
275
|
+
onclick="popupCode('Configurator.src/M000118.html');return false;">
|
276
276
|
<span class="method-name">daemonize</span><span class="method-args">(options={})</span>
|
277
277
|
</a>
|
278
278
|
</div>
|
@@ -305,12 +305,12 @@ gem/library if NOT win32.
|
|
305
305
|
</div>
|
306
306
|
</div>
|
307
307
|
|
308
|
-
<div id="method-
|
309
|
-
<a name="
|
308
|
+
<div id="method-M000127" class="method-detail">
|
309
|
+
<a name="M000127"></a>
|
310
310
|
|
311
311
|
<div class="method-heading">
|
312
|
-
<a href="Configurator.src/
|
313
|
-
onclick="popupCode('Configurator.src/
|
312
|
+
<a href="Configurator.src/M000127.html" target="Code" class="method-signature"
|
313
|
+
onclick="popupCode('Configurator.src/M000127.html');return false;">
|
314
314
|
<span class="method-name">debug</span><span class="method-args">(location, what = [:object, :rails, :files, :threads, :params])</span>
|
315
315
|
</a>
|
316
316
|
</div>
|
@@ -332,20 +332,20 @@ debug. For example, if you just want to dump rails stuff then do:
|
|
332
332
|
</pre>
|
333
333
|
<p>
|
334
334
|
And it will only produce the log/mongrel_debug/rails.log file. Available
|
335
|
-
options are: :object, :
|
335
|
+
options are: :object, :rails, :files, :threads, :params
|
336
336
|
</p>
|
337
337
|
<p>
|
338
|
-
NOTE: Use [:files] to get
|
338
|
+
NOTE: Use [:files] to get accesses dumped to stderr like with WEBrick.
|
339
339
|
</p>
|
340
340
|
</div>
|
341
341
|
</div>
|
342
342
|
|
343
|
-
<div id="method-
|
344
|
-
<a name="
|
343
|
+
<div id="method-M000126" class="method-detail">
|
344
|
+
<a name="M000126"></a>
|
345
345
|
|
346
346
|
<div class="method-heading">
|
347
|
-
<a href="Configurator.src/
|
348
|
-
onclick="popupCode('Configurator.src/
|
347
|
+
<a href="Configurator.src/M000126.html" target="Code" class="method-signature"
|
348
|
+
onclick="popupCode('Configurator.src/M000126.html');return false;">
|
349
349
|
<span class="method-name">join</span><span class="method-args">()</span>
|
350
350
|
</a>
|
351
351
|
</div>
|
@@ -354,17 +354,17 @@ NOTE: Use [:files] to get acccesses dumped to stderr like with WEBrick.
|
|
354
354
|
<p>
|
355
355
|
This method should actually be called <b>outside</b> of the <a
|
356
356
|
href="Configurator.html">Configurator</a> block so that you can control it.
|
357
|
-
In
|
357
|
+
In other words do it like: config.join.
|
358
358
|
</p>
|
359
359
|
</div>
|
360
360
|
</div>
|
361
361
|
|
362
|
-
<div id="method-
|
363
|
-
<a name="
|
362
|
+
<div id="method-M000116" class="method-detail">
|
363
|
+
<a name="M000116"></a>
|
364
364
|
|
365
365
|
<div class="method-heading">
|
366
|
-
<a href="Configurator.src/
|
367
|
-
onclick="popupCode('Configurator.src/
|
366
|
+
<a href="Configurator.src/M000116.html" target="Code" class="method-signature"
|
367
|
+
onclick="popupCode('Configurator.src/M000116.html');return false;">
|
368
368
|
<span class="method-name">listener</span><span class="method-args">(options={},&blk)</span>
|
369
369
|
</a>
|
370
370
|
</div>
|
@@ -372,10 +372,10 @@ In otherwords do it like: config.join.
|
|
372
372
|
<div class="method-description">
|
373
373
|
<p>
|
374
374
|
Starts a listener block. This is the only one that actually takes a block
|
375
|
-
and then you make <a href="Configurator.html#
|
375
|
+
and then you make <a href="Configurator.html#M000117">Configurator.uri</a>
|
376
376
|
calls in order to setup your URIs and handlers. If you write your Handlers
|
377
377
|
as GemPlugins then you can use <a
|
378
|
-
href="Configurator.html#
|
378
|
+
href="Configurator.html#M000119">load_plugins</a> and plugin to load them.
|
379
379
|
</p>
|
380
380
|
<p>
|
381
381
|
It expects the following options (or defaults):
|
@@ -394,17 +394,23 @@ It expects the following options (or defaults):
|
|
394
394
|
<li>:timeout => 1/100th of a second timeout between requests. (10 is 1/10th,
|
395
395
|
0 is timeout)
|
396
396
|
|
397
|
+
</li>
|
398
|
+
<li>:user => User to change to, must have :group as well.
|
399
|
+
|
400
|
+
</li>
|
401
|
+
<li>:group => Group to change to, must have :user as well.
|
402
|
+
|
397
403
|
</li>
|
398
404
|
</ul>
|
399
405
|
</div>
|
400
406
|
</div>
|
401
407
|
|
402
|
-
<div id="method-
|
403
|
-
<a name="
|
408
|
+
<div id="method-M000121" class="method-detail">
|
409
|
+
<a name="M000121"></a>
|
404
410
|
|
405
411
|
<div class="method-heading">
|
406
|
-
<a href="Configurator.src/
|
407
|
-
onclick="popupCode('Configurator.src/
|
412
|
+
<a href="Configurator.src/M000121.html" target="Code" class="method-signature"
|
413
|
+
onclick="popupCode('Configurator.src/M000121.html');return false;">
|
408
414
|
<span class="method-name">load_mime_map</span><span class="method-args">(file, mime={})</span>
|
409
415
|
</a>
|
410
416
|
</div>
|
@@ -421,12 +427,12 @@ MIME types map is organized.
|
|
421
427
|
</div>
|
422
428
|
</div>
|
423
429
|
|
424
|
-
<div id="method-
|
425
|
-
<a name="
|
430
|
+
<div id="method-M000119" class="method-detail">
|
431
|
+
<a name="M000119"></a>
|
426
432
|
|
427
433
|
<div class="method-heading">
|
428
|
-
<a href="Configurator.src/
|
429
|
-
onclick="popupCode('Configurator.src/
|
434
|
+
<a href="Configurator.src/M000119.html" target="Code" class="method-signature"
|
435
|
+
onclick="popupCode('Configurator.src/M000119.html');return false;">
|
430
436
|
<span class="method-name">load_plugins</span><span class="method-args">(options={})</span>
|
431
437
|
</a>
|
432
438
|
</div>
|
@@ -441,12 +447,12 @@ determining the dependencies.
|
|
441
447
|
</div>
|
442
448
|
</div>
|
443
449
|
|
444
|
-
<div id="method-
|
445
|
-
<a name="
|
450
|
+
<div id="method-M000120" class="method-detail">
|
451
|
+
<a name="M000120"></a>
|
446
452
|
|
447
453
|
<div class="method-heading">
|
448
|
-
<a href="Configurator.src/
|
449
|
-
onclick="popupCode('Configurator.src/
|
454
|
+
<a href="Configurator.src/M000120.html" target="Code" class="method-signature"
|
455
|
+
onclick="popupCode('Configurator.src/M000120.html');return false;">
|
450
456
|
<span class="method-name">load_yaml</span><span class="method-args">(file, default={})</span>
|
451
457
|
</a>
|
452
458
|
</div>
|
@@ -458,12 +464,12 @@ Easy way to load a YAML file and apply default settings.
|
|
458
464
|
</div>
|
459
465
|
</div>
|
460
466
|
|
461
|
-
<div id="method-
|
462
|
-
<a name="
|
467
|
+
<div id="method-M000130" class="method-detail">
|
468
|
+
<a name="M000130"></a>
|
463
469
|
|
464
470
|
<div class="method-heading">
|
465
|
-
<a href="Configurator.src/
|
466
|
-
onclick="popupCode('Configurator.src/
|
471
|
+
<a href="Configurator.src/M000130.html" target="Code" class="method-signature"
|
472
|
+
onclick="popupCode('Configurator.src/M000130.html');return false;">
|
467
473
|
<span class="method-name">log</span><span class="method-args">(msg)</span>
|
468
474
|
</a>
|
469
475
|
</div>
|
@@ -475,12 +481,12 @@ Logs a simple message to STDERR (or the mongrel log if in daemon mode).
|
|
475
481
|
</div>
|
476
482
|
</div>
|
477
483
|
|
478
|
-
<div id="method-
|
479
|
-
<a name="
|
484
|
+
<div id="method-M000122" class="method-detail">
|
485
|
+
<a name="M000122"></a>
|
480
486
|
|
481
487
|
<div class="method-heading">
|
482
|
-
<a href="Configurator.src/
|
483
|
-
onclick="popupCode('Configurator.src/
|
488
|
+
<a href="Configurator.src/M000122.html" target="Code" class="method-signature"
|
489
|
+
onclick="popupCode('Configurator.src/M000122.html');return false;">
|
484
490
|
<span class="method-name">plugin</span><span class="method-args">(name, options={})</span>
|
485
491
|
</a>
|
486
492
|
</div>
|
@@ -494,12 +500,12 @@ to passing them in.
|
|
494
500
|
</div>
|
495
501
|
</div>
|
496
502
|
|
497
|
-
<div id="method-
|
498
|
-
<a name="
|
503
|
+
<div id="method-M000123" class="method-detail">
|
504
|
+
<a name="M000123"></a>
|
499
505
|
|
500
506
|
<div class="method-heading">
|
501
|
-
<a href="Configurator.src/
|
502
|
-
onclick="popupCode('Configurator.src/
|
507
|
+
<a href="Configurator.src/M000123.html" target="Code" class="method-signature"
|
508
|
+
onclick="popupCode('Configurator.src/M000123.html');return false;">
|
503
509
|
<span class="method-name">redirect</span><span class="method-args">(from, pattern, replacement = nil, &block)</span>
|
504
510
|
</a>
|
505
511
|
</div>
|
@@ -518,12 +524,12 @@ the configurator like this:
|
|
518
524
|
</div>
|
519
525
|
</div>
|
520
526
|
|
521
|
-
<div id="method-
|
522
|
-
<a name="
|
527
|
+
<div id="method-M000115" class="method-detail">
|
528
|
+
<a name="M000115"></a>
|
523
529
|
|
524
530
|
<div class="method-heading">
|
525
|
-
<a href="Configurator.src/
|
526
|
-
onclick="popupCode('Configurator.src/
|
531
|
+
<a href="Configurator.src/M000115.html" target="Code" class="method-signature"
|
532
|
+
onclick="popupCode('Configurator.src/M000115.html');return false;">
|
527
533
|
<span class="method-name">resolve_defaults</span><span class="method-args">(options)</span>
|
528
534
|
</a>
|
529
535
|
</div>
|
@@ -536,12 +542,12 @@ used internally.
|
|
536
542
|
</div>
|
537
543
|
</div>
|
538
544
|
|
539
|
-
<div id="method-
|
540
|
-
<a name="
|
545
|
+
<div id="method-M000124" class="method-detail">
|
546
|
+
<a name="M000124"></a>
|
541
547
|
|
542
548
|
<div class="method-heading">
|
543
|
-
<a href="Configurator.src/
|
544
|
-
onclick="popupCode('Configurator.src/
|
549
|
+
<a href="Configurator.src/M000124.html" target="Code" class="method-signature"
|
550
|
+
onclick="popupCode('Configurator.src/M000124.html');return false;">
|
545
551
|
<span class="method-name">run</span><span class="method-args">()</span>
|
546
552
|
</a>
|
547
553
|
</div>
|
@@ -550,18 +556,18 @@ used internally.
|
|
550
556
|
<p>
|
551
557
|
Works like a meta run method which goes through all the configured
|
552
558
|
listeners. Use the <a
|
553
|
-
href="Configurator.html#
|
559
|
+
href="Configurator.html#M000126">Configurator.join</a> method to prevent
|
554
560
|
Ruby from exiting until each one is done.
|
555
561
|
</p>
|
556
562
|
</div>
|
557
563
|
</div>
|
558
564
|
|
559
|
-
<div id="method-
|
560
|
-
<a name="
|
565
|
+
<div id="method-M000128" class="method-detail">
|
566
|
+
<a name="M000128"></a>
|
561
567
|
|
562
568
|
<div class="method-heading">
|
563
|
-
<a href="Configurator.src/
|
564
|
-
onclick="popupCode('Configurator.src/
|
569
|
+
<a href="Configurator.src/M000128.html" target="Code" class="method-signature"
|
570
|
+
onclick="popupCode('Configurator.src/M000128.html');return false;">
|
565
571
|
<span class="method-name">run_config</span><span class="method-args">(script)</span>
|
566
572
|
</a>
|
567
573
|
</div>
|
@@ -577,12 +583,12 @@ href="Configurator.html">Configurator</a> statements.
|
|
577
583
|
</div>
|
578
584
|
</div>
|
579
585
|
|
580
|
-
<div id="method-
|
581
|
-
<a name="
|
586
|
+
<div id="method-M000129" class="method-detail">
|
587
|
+
<a name="M000129"></a>
|
582
588
|
|
583
589
|
<div class="method-heading">
|
584
|
-
<a href="Configurator.src/
|
585
|
-
onclick="popupCode('Configurator.src/
|
590
|
+
<a href="Configurator.src/M000129.html" target="Code" class="method-signature"
|
591
|
+
onclick="popupCode('Configurator.src/M000129.html');return false;">
|
586
592
|
<span class="method-name">setup_signals</span><span class="method-args">(options={})</span>
|
587
593
|
</a>
|
588
594
|
</div>
|
@@ -595,7 +601,7 @@ since this is typically framework specific.
|
|
595
601
|
</p>
|
596
602
|
<p>
|
597
603
|
Requires a :pid_file option given to <a
|
598
|
-
href="Configurator.html#
|
604
|
+
href="Configurator.html#M000110">Configurator.new</a> to indicate a file to
|
599
605
|
delete. It sets the MongrelConfig.needs_restart attribute if the start
|
600
606
|
command should reload. It’s up to you to detect this and do whatever
|
601
607
|
is needed for a "restart".
|
@@ -606,12 +612,12 @@ This command is safely ignored if the platform is win32 (with a warning)
|
|
606
612
|
</div>
|
607
613
|
</div>
|
608
614
|
|
609
|
-
<div id="method-
|
610
|
-
<a name="
|
615
|
+
<div id="method-M000125" class="method-detail">
|
616
|
+
<a name="M000125"></a>
|
611
617
|
|
612
618
|
<div class="method-heading">
|
613
|
-
<a href="Configurator.src/
|
614
|
-
onclick="popupCode('Configurator.src/
|
619
|
+
<a href="Configurator.src/M000125.html" target="Code" class="method-signature"
|
620
|
+
onclick="popupCode('Configurator.src/M000125.html');return false;">
|
615
621
|
<span class="method-name">stop</span><span class="method-args">(needs_restart=false, unlink_pid_file=true)</span>
|
616
622
|
</a>
|
617
623
|
</div>
|
@@ -625,12 +631,12 @@ restart and that the pid file should be unlinked on exit.
|
|
625
631
|
</div>
|
626
632
|
</div>
|
627
633
|
|
628
|
-
<div id="method-
|
629
|
-
<a name="
|
634
|
+
<div id="method-M000117" class="method-detail">
|
635
|
+
<a name="M000117"></a>
|
630
636
|
|
631
637
|
<div class="method-heading">
|
632
|
-
<a href="Configurator.src/
|
633
|
-
onclick="popupCode('Configurator.src/
|
638
|
+
<a href="Configurator.src/M000117.html" target="Code" class="method-signature"
|
639
|
+
onclick="popupCode('Configurator.src/M000117.html');return false;">
|
634
640
|
<span class="method-name">uri</span><span class="method-args">(location, options={})</span>
|
635
641
|
</a>
|
636
642
|
</div>
|
@@ -638,7 +644,7 @@ restart and that the pid file should be unlinked on exit.
|
|
638
644
|
<div class="method-description">
|
639
645
|
<p>
|
640
646
|
Called inside a <a
|
641
|
-
href="Configurator.html#
|
647
|
+
href="Configurator.html#M000116">Configurator.listener</a> block in order
|
642
648
|
to add URI->handler mappings for that listener. Use this as many times
|
643
649
|
as you like. It expects the following options or defaults:
|
644
650
|
</p>
|
@@ -655,12 +661,12 @@ handler.
|
|
655
661
|
</div>
|
656
662
|
</div>
|
657
663
|
|
658
|
-
<div id="method-
|
659
|
-
<a name="
|
664
|
+
<div id="method-M000112" class="method-detail">
|
665
|
+
<a name="M000112"></a>
|
660
666
|
|
661
667
|
<div class="method-heading">
|
662
|
-
<a href="Configurator.src/
|
663
|
-
onclick="popupCode('Configurator.src/
|
668
|
+
<a href="Configurator.src/M000112.html" target="Code" class="method-signature"
|
669
|
+
onclick="popupCode('Configurator.src/M000112.html');return false;">
|
664
670
|
<span class="method-name">write_pid_file</span><span class="method-args">()</span>
|
665
671
|
</a>
|
666
672
|
</div>
|