mongrel 0.3.13.2 → 0.3.13.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (183) hide show
  1. data/COPYING +39 -488
  2. data/LICENSE +39 -488
  3. data/Rakefile +1 -1
  4. data/bin/mongrel_rails +8 -0
  5. data/doc/rdoc/classes/IO.src/M000001.html +5 -5
  6. data/doc/rdoc/classes/IO.src/M000002.html +5 -5
  7. data/doc/rdoc/classes/Kernel.src/M000020.html +5 -5
  8. data/doc/rdoc/classes/Kernel.src/M000021.html +9 -9
  9. data/doc/rdoc/classes/Mongrel.html +4 -22
  10. data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000101.html +10 -10
  11. data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000102.html +33 -33
  12. data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000103.html +20 -20
  13. data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000104.html +13 -13
  14. data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000105.html +11 -11
  15. data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000106.html +4 -4
  16. data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000107.html +4 -4
  17. data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000108.html +4 -4
  18. data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000109.html +5 -5
  19. data/doc/rdoc/classes/Mongrel/Camping.src/M000048.html +8 -8
  20. data/doc/rdoc/classes/Mongrel/Camping/CampingHandler.src/M000049.html +4 -4
  21. data/doc/rdoc/classes/Mongrel/Camping/CampingHandler.src/M000050.html +36 -36
  22. data/doc/rdoc/classes/Mongrel/Command/Base.src/M000026.html +10 -10
  23. data/doc/rdoc/classes/Mongrel/Command/Base.src/M000027.html +28 -28
  24. data/doc/rdoc/classes/Mongrel/Command/Base.src/M000028.html +4 -4
  25. data/doc/rdoc/classes/Mongrel/Command/Base.src/M000029.html +4 -4
  26. data/doc/rdoc/classes/Mongrel/Command/Base.src/M000030.html +4 -4
  27. data/doc/rdoc/classes/Mongrel/Command/Base.src/M000031.html +4 -4
  28. data/doc/rdoc/classes/Mongrel/Command/Base.src/M000032.html +8 -8
  29. data/doc/rdoc/classes/Mongrel/Command/Base.src/M000033.html +4 -4
  30. data/doc/rdoc/classes/Mongrel/Command/Base.src/M000034.html +4 -4
  31. data/doc/rdoc/classes/Mongrel/Command/Base.src/M000035.html +4 -4
  32. data/doc/rdoc/classes/Mongrel/Command/Base.src/M000036.html +10 -10
  33. data/doc/rdoc/classes/Mongrel/Command/Base.src/M000037.html +10 -10
  34. data/doc/rdoc/classes/Mongrel/Command/Base.src/M000038.html +4 -4
  35. data/doc/rdoc/classes/Mongrel/Command/Registry.src/M000039.html +6 -6
  36. data/doc/rdoc/classes/Mongrel/Command/Registry.src/M000040.html +11 -11
  37. data/doc/rdoc/classes/Mongrel/Command/Registry.src/M000041.html +33 -33
  38. data/doc/rdoc/classes/Mongrel/Configurator.html +2 -2
  39. data/doc/rdoc/classes/Mongrel/Configurator.src/M000110.html +13 -13
  40. data/doc/rdoc/classes/Mongrel/Configurator.src/M000111.html +17 -17
  41. data/doc/rdoc/classes/Mongrel/Configurator.src/M000112.html +6 -6
  42. data/doc/rdoc/classes/Mongrel/Configurator.src/M000113.html +6 -6
  43. data/doc/rdoc/classes/Mongrel/Configurator.src/M000114.html +9 -9
  44. data/doc/rdoc/classes/Mongrel/Configurator.src/M000115.html +4 -4
  45. data/doc/rdoc/classes/Mongrel/Configurator.src/M000116.html +23 -23
  46. data/doc/rdoc/classes/Mongrel/Configurator.src/M000117.html +5 -5
  47. data/doc/rdoc/classes/Mongrel/Configurator.src/M000118.html +16 -16
  48. data/doc/rdoc/classes/Mongrel/Configurator.src/M000119.html +18 -18
  49. data/doc/rdoc/classes/Mongrel/Configurator.src/M000120.html +4 -4
  50. data/doc/rdoc/classes/Mongrel/Configurator.src/M000121.html +10 -10
  51. data/doc/rdoc/classes/Mongrel/Configurator.src/M000122.html +5 -5
  52. data/doc/rdoc/classes/Mongrel/Configurator.src/M000123.html +4 -4
  53. data/doc/rdoc/classes/Mongrel/Configurator.src/M000124.html +8 -8
  54. data/doc/rdoc/classes/Mongrel/Configurator.src/M000125.html +11 -11
  55. data/doc/rdoc/classes/Mongrel/Configurator.src/M000126.html +4 -4
  56. data/doc/rdoc/classes/Mongrel/Configurator.src/M000127.html +21 -21
  57. data/doc/rdoc/classes/Mongrel/Configurator.src/M000128.html +4 -4
  58. data/doc/rdoc/classes/Mongrel/Configurator.src/M000129.html +19 -19
  59. data/doc/rdoc/classes/Mongrel/Configurator.src/M000130.html +4 -4
  60. data/doc/rdoc/classes/Mongrel/Const.html +1 -1
  61. data/doc/rdoc/classes/Mongrel/DeflateFilter.src/M000099.html +5 -5
  62. data/doc/rdoc/classes/Mongrel/DeflateFilter.src/M000100.html +14 -14
  63. data/doc/rdoc/classes/Mongrel/DirHandler.src/M000058.html +7 -7
  64. data/doc/rdoc/classes/Mongrel/DirHandler.src/M000059.html +29 -29
  65. data/doc/rdoc/classes/Mongrel/DirHandler.src/M000060.html +28 -28
  66. data/doc/rdoc/classes/Mongrel/DirHandler.src/M000061.html +48 -48
  67. data/doc/rdoc/classes/Mongrel/DirHandler.src/M000062.html +25 -25
  68. data/doc/rdoc/classes/Mongrel/DirHandler.src/M000063.html +4 -4
  69. data/doc/rdoc/classes/Mongrel/Error404Handler.src/M000131.html +4 -4
  70. data/doc/rdoc/classes/Mongrel/Error404Handler.src/M000132.html +4 -4
  71. data/doc/rdoc/classes/Mongrel/HeaderOut.src/M000072.html +4 -4
  72. data/doc/rdoc/classes/Mongrel/HeaderOut.src/M000073.html +4 -4
  73. data/doc/rdoc/classes/Mongrel/HttpHandler.src/M000078.html +3 -3
  74. data/doc/rdoc/classes/Mongrel/HttpHandler.src/M000079.html +3 -3
  75. data/doc/rdoc/classes/Mongrel/HttpHandler.src/M000080.html +3 -3
  76. data/doc/rdoc/classes/Mongrel/HttpHandlerPlugin.src/M000022.html +3 -3
  77. data/doc/rdoc/classes/Mongrel/HttpHandlerPlugin.src/M000023.html +3 -3
  78. data/doc/rdoc/classes/Mongrel/HttpHandlerPlugin.src/M000024.html +5 -5
  79. data/doc/rdoc/classes/Mongrel/HttpHandlerPlugin.src/M000025.html +3 -3
  80. data/doc/rdoc/classes/Mongrel/HttpRequest.src/M000138.html +42 -42
  81. data/doc/rdoc/classes/Mongrel/HttpRequest.src/M000139.html +6 -6
  82. data/doc/rdoc/classes/Mongrel/HttpRequest.src/M000140.html +6 -6
  83. data/doc/rdoc/classes/Mongrel/HttpRequest.src/M000141.html +18 -18
  84. data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000081.html +11 -11
  85. data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000082.html +6 -6
  86. data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000083.html +11 -11
  87. data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000084.html +8 -8
  88. data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000085.html +8 -8
  89. data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000086.html +8 -8
  90. data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000087.html +17 -17
  91. data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000088.html +7 -7
  92. data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000089.html +6 -6
  93. data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000090.html +6 -6
  94. data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000091.html +6 -6
  95. data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000092.html +4 -4
  96. data/doc/rdoc/classes/Mongrel/HttpServer.src/M000064.html +11 -11
  97. data/doc/rdoc/classes/Mongrel/HttpServer.src/M000065.html +71 -71
  98. data/doc/rdoc/classes/Mongrel/HttpServer.src/M000066.html +17 -17
  99. data/doc/rdoc/classes/Mongrel/HttpServer.src/M000067.html +7 -7
  100. data/doc/rdoc/classes/Mongrel/HttpServer.src/M000068.html +36 -37
  101. data/doc/rdoc/classes/Mongrel/HttpServer.src/M000069.html +20 -20
  102. data/doc/rdoc/classes/Mongrel/HttpServer.src/M000070.html +4 -4
  103. data/doc/rdoc/classes/Mongrel/HttpServer.src/M000071.html +8 -8
  104. data/doc/rdoc/classes/Mongrel/Rails/RailsConfigurator.src/M000042.html +25 -25
  105. data/doc/rdoc/classes/Mongrel/Rails/RailsConfigurator.src/M000043.html +11 -11
  106. data/doc/rdoc/classes/Mongrel/Rails/RailsConfigurator.src/M000044.html +12 -12
  107. data/doc/rdoc/classes/Mongrel/Rails/RailsHandler.src/M000045.html +8 -8
  108. data/doc/rdoc/classes/Mongrel/Rails/RailsHandler.src/M000046.html +36 -36
  109. data/doc/rdoc/classes/Mongrel/Rails/RailsHandler.src/M000047.html +9 -9
  110. data/doc/rdoc/classes/Mongrel/RedirectHandler.src/M000136.html +8 -8
  111. data/doc/rdoc/classes/Mongrel/RedirectHandler.src/M000137.html +13 -13
  112. data/doc/rdoc/classes/Mongrel/StatisticsFilter.src/M000133.html +10 -10
  113. data/doc/rdoc/classes/Mongrel/StatisticsFilter.src/M000134.html +10 -10
  114. data/doc/rdoc/classes/Mongrel/StatisticsFilter.src/M000135.html +4 -4
  115. data/doc/rdoc/classes/Mongrel/StatusHandler.src/M000074.html +4 -4
  116. data/doc/rdoc/classes/Mongrel/StatusHandler.src/M000075.html +10 -10
  117. data/doc/rdoc/classes/Mongrel/StatusHandler.src/M000076.html +28 -28
  118. data/doc/rdoc/classes/Mongrel/StatusHandler.src/M000077.html +6 -6
  119. data/doc/rdoc/classes/Mongrel/URIClassifier.src/M000093.html +4 -4
  120. data/doc/rdoc/classes/Mongrel/URIClassifier.src/M000094.html +4 -4
  121. data/doc/rdoc/classes/MongrelDbg.src/M000015.html +5 -5
  122. data/doc/rdoc/classes/MongrelDbg.src/M000016.html +6 -6
  123. data/doc/rdoc/classes/MongrelDbg.src/M000017.html +8 -8
  124. data/doc/rdoc/classes/MongrelDbg.src/M000018.html +7 -7
  125. data/doc/rdoc/classes/MongrelDbg.src/M000019.html +4 -4
  126. data/doc/rdoc/classes/ObjectTracker.src/M000013.html +13 -13
  127. data/doc/rdoc/classes/ObjectTracker.src/M000014.html +30 -30
  128. data/doc/rdoc/classes/RequestLog/Access.src/M000142.html +5 -5
  129. data/doc/rdoc/classes/RequestLog/Files.src/M000143.html +5 -5
  130. data/doc/rdoc/classes/RequestLog/Objects.src/M000145.html +5 -5
  131. data/doc/rdoc/classes/RequestLog/Params.src/M000146.html +5 -5
  132. data/doc/rdoc/classes/RequestLog/Threads.src/M000144.html +20 -20
  133. data/doc/rdoc/classes/Stats.src/M000005.html +5 -5
  134. data/doc/rdoc/classes/Stats.src/M000006.html +9 -9
  135. data/doc/rdoc/classes/Stats.src/M000007.html +12 -12
  136. data/doc/rdoc/classes/Stats.src/M000008.html +4 -4
  137. data/doc/rdoc/classes/Stats.src/M000009.html +4 -4
  138. data/doc/rdoc/classes/Stats.src/M000010.html +4 -4
  139. data/doc/rdoc/classes/Stats.src/M000011.html +9 -9
  140. data/doc/rdoc/classes/Stats.src/M000012.html +6 -6
  141. data/doc/rdoc/classes/TCPServer.src/M000003.html +5 -5
  142. data/doc/rdoc/created.rid +1 -1
  143. data/doc/rdoc/files/COPYING.html +51 -639
  144. data/doc/rdoc/files/LICENSE.html +51 -639
  145. data/doc/rdoc/files/ext/http11/http11_c.html +1 -1
  146. data/doc/rdoc/files/lib/mongrel/camping_rb.html +6 -21
  147. data/doc/rdoc/files/lib/mongrel/cgi_rb.html +6 -21
  148. data/doc/rdoc/files/lib/mongrel/command_rb.html +6 -21
  149. data/doc/rdoc/files/lib/mongrel/debug_rb.html +6 -21
  150. data/doc/rdoc/files/lib/mongrel/handlers_rb.html +13 -1
  151. data/doc/rdoc/files/lib/mongrel/init_rb.html +6 -21
  152. data/doc/rdoc/files/lib/mongrel/rails_rb.html +6 -21
  153. data/doc/rdoc/files/lib/mongrel/stats_rb.html +6 -21
  154. data/doc/rdoc/files/lib/mongrel/tcphack_rb.html +6 -21
  155. data/doc/rdoc/files/lib/mongrel_rb.html +6 -21
  156. data/ext/http11/http11.c +4 -19
  157. data/ext/http11/http11_parser.c +48 -63
  158. data/ext/http11/http11_parser.h +3 -17
  159. data/lib/http11.so +0 -0
  160. data/lib/mongrel.rb +10 -23
  161. data/lib/mongrel/camping.rb +4 -16
  162. data/lib/mongrel/cgi.rb +4 -16
  163. data/lib/mongrel/command.rb +4 -16
  164. data/lib/mongrel/debug.rb +4 -16
  165. data/lib/mongrel/handlers.rb +6 -17
  166. data/lib/mongrel/init.rb +4 -16
  167. data/lib/mongrel/rails.rb +4 -16
  168. data/lib/mongrel/stats.rb +4 -16
  169. data/lib/mongrel/tcphack.rb +4 -16
  170. data/test/test_command.rb +4 -16
  171. data/test/test_conditional.rb +4 -16
  172. data/test/test_configurator.rb +4 -16
  173. data/test/test_debug.rb +4 -16
  174. data/test/test_handlers.rb +4 -16
  175. data/test/test_http11.rb +4 -16
  176. data/test/test_redirect_handler.rb +6 -0
  177. data/test/test_request_progress.rb +58 -0
  178. data/test/test_response.rb +4 -16
  179. data/test/test_stats.rb +4 -16
  180. data/test/test_uriclassifier.rb +4 -16
  181. data/test/test_ws.rb +4 -16
  182. data/test/testhelp.rb +6 -0
  183. metadata +5 -2
@@ -10,15 +10,15 @@
10
10
  <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre> <span class="ruby-comment cmt"># File lib/mongrel/command.rb, line 43</span>
14
- 43: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">options</span>(<span class="ruby-identifier">opts</span>)
15
- 44: <span class="ruby-comment cmt"># process the given options array</span>
16
- 45: <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">short</span>, <span class="ruby-identifier">long</span>, <span class="ruby-identifier">help</span>, <span class="ruby-identifier">variable</span>, <span class="ruby-identifier">default</span><span class="ruby-operator">|</span>
17
- 46: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">instance_variable_set</span>(<span class="ruby-identifier">variable</span>, <span class="ruby-identifier">default</span>)
18
- 47: <span class="ruby-ivar">@opt</span>.<span class="ruby-identifier">on</span>(<span class="ruby-identifier">short</span>, <span class="ruby-identifier">long</span>, <span class="ruby-identifier">help</span>) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">arg</span><span class="ruby-operator">|</span>
19
- 48: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">instance_variable_set</span>(<span class="ruby-identifier">variable</span>, <span class="ruby-identifier">arg</span>)
20
- 49: <span class="ruby-keyword kw">end</span>
21
- 50: <span class="ruby-keyword kw">end</span>
22
- 51: <span class="ruby-keyword kw">end</span></pre>
13
+ <pre> <span class="ruby-comment cmt"># File lib/mongrel/command.rb, line 31</span>
14
+ 31: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">options</span>(<span class="ruby-identifier">opts</span>)
15
+ 32: <span class="ruby-comment cmt"># process the given options array</span>
16
+ 33: <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">short</span>, <span class="ruby-identifier">long</span>, <span class="ruby-identifier">help</span>, <span class="ruby-identifier">variable</span>, <span class="ruby-identifier">default</span><span class="ruby-operator">|</span>
17
+ 34: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">instance_variable_set</span>(<span class="ruby-identifier">variable</span>, <span class="ruby-identifier">default</span>)
18
+ 35: <span class="ruby-ivar">@opt</span>.<span class="ruby-identifier">on</span>(<span class="ruby-identifier">short</span>, <span class="ruby-identifier">long</span>, <span class="ruby-identifier">help</span>) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">arg</span><span class="ruby-operator">|</span>
19
+ 36: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">instance_variable_set</span>(<span class="ruby-identifier">variable</span>, <span class="ruby-identifier">arg</span>)
20
+ 37: <span class="ruby-keyword kw">end</span>
21
+ 38: <span class="ruby-keyword kw">end</span>
22
+ 39: <span class="ruby-keyword kw">end</span></pre>
23
23
  </body>
24
24
  </html>
@@ -10,33 +10,33 @@
10
10
  <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre> <span class="ruby-comment cmt"># File lib/mongrel/command.rb, line 55</span>
14
- 55: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">options</span>={})
15
- 56: <span class="ruby-identifier">argv</span> = <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:argv</span>] <span class="ruby-operator">||</span> []
16
- 57: <span class="ruby-ivar">@opt</span> = <span class="ruby-constant">OptionParser</span>.<span class="ruby-identifier">new</span>
17
- 58: <span class="ruby-ivar">@opt</span>.<span class="ruby-identifier">banner</span> = <span class="ruby-constant">Mongrel</span><span class="ruby-operator">::</span><span class="ruby-constant">Command</span><span class="ruby-operator">::</span><span class="ruby-constant">BANNER</span>
18
- 59: <span class="ruby-ivar">@valid</span> = <span class="ruby-keyword kw">true</span>
19
- 60: <span class="ruby-comment cmt"># this is retarded, but it has to be done this way because -h and -v exit</span>
20
- 61: <span class="ruby-ivar">@done_validating</span> = <span class="ruby-keyword kw">false</span>
21
- 62: <span class="ruby-ivar">@original_args</span> = <span class="ruby-identifier">argv</span>.<span class="ruby-identifier">dup</span>
22
- 63:
23
- 64: <span class="ruby-identifier">configure</span>
24
- 65:
25
- 66: <span class="ruby-comment cmt"># I need to add my own -h definition to prevent the -h by default from exiting.</span>
26
- 67: <span class="ruby-ivar">@opt</span>.<span class="ruby-identifier">on_tail</span>(<span class="ruby-value str">&quot;-h&quot;</span>, <span class="ruby-value str">&quot;--help&quot;</span>, <span class="ruby-value str">&quot;Show this message&quot;</span>) <span class="ruby-keyword kw">do</span>
27
- 68: <span class="ruby-ivar">@done_validating</span> = <span class="ruby-keyword kw">true</span>
28
- 69: <span class="ruby-identifier">puts</span> <span class="ruby-ivar">@opt</span>
29
- 70: <span class="ruby-keyword kw">end</span>
30
- 71:
31
- 72: <span class="ruby-comment cmt"># I need to add my own -v definition to prevent the -v from exiting by default as well.</span>
32
- 73: <span class="ruby-ivar">@opt</span>.<span class="ruby-identifier">on_tail</span>(<span class="ruby-value str">&quot;--version&quot;</span>, <span class="ruby-value str">&quot;Show version&quot;</span>) <span class="ruby-keyword kw">do</span>
33
- 74: <span class="ruby-ivar">@done_validating</span> = <span class="ruby-keyword kw">true</span>
34
- 75: <span class="ruby-keyword kw">if</span> <span class="ruby-constant">VERSION</span>
35
- 76: <span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;Version #{Mongrel::Const::MONGREL_VERSION}&quot;</span>
36
- 77: <span class="ruby-keyword kw">end</span>
37
- 78: <span class="ruby-keyword kw">end</span>
38
- 79:
39
- 80: <span class="ruby-ivar">@opt</span>.<span class="ruby-identifier">parse!</span> <span class="ruby-identifier">argv</span>
40
- 81: <span class="ruby-keyword kw">end</span></pre>
13
+ <pre> <span class="ruby-comment cmt"># File lib/mongrel/command.rb, line 43</span>
14
+ 43: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">options</span>={})
15
+ 44: <span class="ruby-identifier">argv</span> = <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:argv</span>] <span class="ruby-operator">||</span> []
16
+ 45: <span class="ruby-ivar">@opt</span> = <span class="ruby-constant">OptionParser</span>.<span class="ruby-identifier">new</span>
17
+ 46: <span class="ruby-ivar">@opt</span>.<span class="ruby-identifier">banner</span> = <span class="ruby-constant">Mongrel</span><span class="ruby-operator">::</span><span class="ruby-constant">Command</span><span class="ruby-operator">::</span><span class="ruby-constant">BANNER</span>
18
+ 47: <span class="ruby-ivar">@valid</span> = <span class="ruby-keyword kw">true</span>
19
+ 48: <span class="ruby-comment cmt"># this is retarded, but it has to be done this way because -h and -v exit</span>
20
+ 49: <span class="ruby-ivar">@done_validating</span> = <span class="ruby-keyword kw">false</span>
21
+ 50: <span class="ruby-ivar">@original_args</span> = <span class="ruby-identifier">argv</span>.<span class="ruby-identifier">dup</span>
22
+ 51:
23
+ 52: <span class="ruby-identifier">configure</span>
24
+ 53:
25
+ 54: <span class="ruby-comment cmt"># I need to add my own -h definition to prevent the -h by default from exiting.</span>
26
+ 55: <span class="ruby-ivar">@opt</span>.<span class="ruby-identifier">on_tail</span>(<span class="ruby-value str">&quot;-h&quot;</span>, <span class="ruby-value str">&quot;--help&quot;</span>, <span class="ruby-value str">&quot;Show this message&quot;</span>) <span class="ruby-keyword kw">do</span>
27
+ 56: <span class="ruby-ivar">@done_validating</span> = <span class="ruby-keyword kw">true</span>
28
+ 57: <span class="ruby-identifier">puts</span> <span class="ruby-ivar">@opt</span>
29
+ 58: <span class="ruby-keyword kw">end</span>
30
+ 59:
31
+ 60: <span class="ruby-comment cmt"># I need to add my own -v definition to prevent the -v from exiting by default as well.</span>
32
+ 61: <span class="ruby-ivar">@opt</span>.<span class="ruby-identifier">on_tail</span>(<span class="ruby-value str">&quot;--version&quot;</span>, <span class="ruby-value str">&quot;Show version&quot;</span>) <span class="ruby-keyword kw">do</span>
33
+ 62: <span class="ruby-ivar">@done_validating</span> = <span class="ruby-keyword kw">true</span>
34
+ 63: <span class="ruby-keyword kw">if</span> <span class="ruby-constant">VERSION</span>
35
+ 64: <span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;Version #{Mongrel::Const::MONGREL_VERSION}&quot;</span>
36
+ 65: <span class="ruby-keyword kw">end</span>
37
+ 66: <span class="ruby-keyword kw">end</span>
38
+ 67:
39
+ 68: <span class="ruby-ivar">@opt</span>.<span class="ruby-identifier">parse!</span> <span class="ruby-identifier">argv</span>
40
+ 69: <span class="ruby-keyword kw">end</span></pre>
41
41
  </body>
42
42
  </html>
@@ -10,9 +10,9 @@
10
10
  <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre> <span class="ruby-comment cmt"># File lib/mongrel/command.rb, line 83</span>
14
- 83: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">configure</span>
15
- 84: <span class="ruby-identifier">options</span> []
16
- 85: <span class="ruby-keyword kw">end</span></pre>
13
+ <pre> <span class="ruby-comment cmt"># File lib/mongrel/command.rb, line 71</span>
14
+ 71: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">configure</span>
15
+ 72: <span class="ruby-identifier">options</span> []
16
+ 73: <span class="ruby-keyword kw">end</span></pre>
17
17
  </body>
18
18
  </html>
@@ -10,9 +10,9 @@
10
10
  <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre> <span class="ruby-comment cmt"># File lib/mongrel/command.rb, line 88</span>
14
- 88: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">validate</span>
15
- 89: <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@valid</span>
16
- 90: <span class="ruby-keyword kw">end</span></pre>
13
+ <pre> <span class="ruby-comment cmt"># File lib/mongrel/command.rb, line 76</span>
14
+ 76: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">validate</span>
15
+ 77: <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@valid</span>
16
+ 78: <span class="ruby-keyword kw">end</span></pre>
17
17
  </body>
18
18
  </html>
@@ -10,9 +10,9 @@
10
10
  <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre> <span class="ruby-comment cmt"># File lib/mongrel/command.rb, line 93</span>
14
- 93: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">help</span>
15
- 94: <span class="ruby-ivar">@opt</span>.<span class="ruby-identifier">help</span>
16
- 95: <span class="ruby-keyword kw">end</span></pre>
13
+ <pre> <span class="ruby-comment cmt"># File lib/mongrel/command.rb, line 81</span>
14
+ 81: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">help</span>
15
+ 82: <span class="ruby-ivar">@opt</span>.<span class="ruby-identifier">help</span>
16
+ 83: <span class="ruby-keyword kw">end</span></pre>
17
17
  </body>
18
18
  </html>
@@ -10,9 +10,9 @@
10
10
  <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre> <span class="ruby-comment cmt"># File lib/mongrel/command.rb, line 99</span>
14
- 99: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">run</span>
15
- 100: <span class="ruby-identifier">raise</span> <span class="ruby-constant">NotImplementedError</span>
16
- 101: <span class="ruby-keyword kw">end</span></pre>
13
+ <pre> <span class="ruby-comment cmt"># File lib/mongrel/command.rb, line 87</span>
14
+ 87: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">run</span>
15
+ 88: <span class="ruby-identifier">raise</span> <span class="ruby-constant">NotImplementedError</span>
16
+ 89: <span class="ruby-keyword kw">end</span></pre>
17
17
  </body>
18
18
  </html>
@@ -10,13 +10,13 @@
10
10
  <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre> <span class="ruby-comment cmt"># File lib/mongrel/command.rb, line 105</span>
14
- 105: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">valid?</span>(<span class="ruby-identifier">exp</span>, <span class="ruby-identifier">message</span>)
15
- 106: <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">not</span> <span class="ruby-ivar">@done_validating</span> <span class="ruby-keyword kw">and</span> (<span class="ruby-keyword kw">not</span> <span class="ruby-identifier">exp</span>)
16
- 107: <span class="ruby-identifier">failure</span> <span class="ruby-identifier">message</span>
17
- 108: <span class="ruby-ivar">@valid</span> = <span class="ruby-keyword kw">false</span>
18
- 109: <span class="ruby-ivar">@done_validating</span> = <span class="ruby-keyword kw">true</span>
19
- 110: <span class="ruby-keyword kw">end</span>
20
- 111: <span class="ruby-keyword kw">end</span></pre>
13
+ <pre> <span class="ruby-comment cmt"># File lib/mongrel/command.rb, line 93</span>
14
+ 93: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">valid?</span>(<span class="ruby-identifier">exp</span>, <span class="ruby-identifier">message</span>)
15
+ 94: <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">not</span> <span class="ruby-ivar">@done_validating</span> <span class="ruby-keyword kw">and</span> (<span class="ruby-keyword kw">not</span> <span class="ruby-identifier">exp</span>)
16
+ 95: <span class="ruby-identifier">failure</span> <span class="ruby-identifier">message</span>
17
+ 96: <span class="ruby-ivar">@valid</span> = <span class="ruby-keyword kw">false</span>
18
+ 97: <span class="ruby-ivar">@done_validating</span> = <span class="ruby-keyword kw">true</span>
19
+ 98: <span class="ruby-keyword kw">end</span>
20
+ 99: <span class="ruby-keyword kw">end</span></pre>
21
21
  </body>
22
22
  </html>
@@ -10,9 +10,9 @@
10
10
  <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre> <span class="ruby-comment cmt"># File lib/mongrel/command.rb, line 114</span>
14
- 114: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">valid_exists?</span>(<span class="ruby-identifier">file</span>, <span class="ruby-identifier">message</span>)
15
- 115: <span class="ruby-identifier">valid?</span>(<span class="ruby-identifier">file</span> <span class="ruby-operator">!=</span> <span class="ruby-keyword kw">nil</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exist?</span>(<span class="ruby-identifier">file</span>), <span class="ruby-identifier">message</span>)
16
- 116: <span class="ruby-keyword kw">end</span></pre>
13
+ <pre> <span class="ruby-comment cmt"># File lib/mongrel/command.rb, line 102</span>
14
+ 102: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">valid_exists?</span>(<span class="ruby-identifier">file</span>, <span class="ruby-identifier">message</span>)
15
+ 103: <span class="ruby-identifier">valid?</span>(<span class="ruby-identifier">file</span> <span class="ruby-operator">!=</span> <span class="ruby-keyword kw">nil</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exist?</span>(<span class="ruby-identifier">file</span>), <span class="ruby-identifier">message</span>)
16
+ 104: <span class="ruby-keyword kw">end</span></pre>
17
17
  </body>
18
18
  </html>
@@ -10,9 +10,9 @@
10
10
  <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre> <span class="ruby-comment cmt"># File lib/mongrel/command.rb, line 120</span>
14
- 120: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">valid_file?</span>(<span class="ruby-identifier">file</span>, <span class="ruby-identifier">message</span>)
15
- 121: <span class="ruby-identifier">valid?</span>(<span class="ruby-identifier">file</span> <span class="ruby-operator">!=</span> <span class="ruby-keyword kw">nil</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">file?</span>(<span class="ruby-identifier">file</span>), <span class="ruby-identifier">message</span>)
16
- 122: <span class="ruby-keyword kw">end</span></pre>
13
+ <pre> <span class="ruby-comment cmt"># File lib/mongrel/command.rb, line 108</span>
14
+ 108: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">valid_file?</span>(<span class="ruby-identifier">file</span>, <span class="ruby-identifier">message</span>)
15
+ 109: <span class="ruby-identifier">valid?</span>(<span class="ruby-identifier">file</span> <span class="ruby-operator">!=</span> <span class="ruby-keyword kw">nil</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">file?</span>(<span class="ruby-identifier">file</span>), <span class="ruby-identifier">message</span>)
16
+ 110: <span class="ruby-keyword kw">end</span></pre>
17
17
  </body>
18
18
  </html>
@@ -10,9 +10,9 @@
10
10
  <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre> <span class="ruby-comment cmt"># File lib/mongrel/command.rb, line 125</span>
14
- 125: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">valid_dir?</span>(<span class="ruby-identifier">file</span>, <span class="ruby-identifier">message</span>)
15
- 126: <span class="ruby-identifier">valid?</span>(<span class="ruby-identifier">file</span> <span class="ruby-operator">!=</span> <span class="ruby-keyword kw">nil</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">directory?</span>(<span class="ruby-identifier">file</span>), <span class="ruby-identifier">message</span>)
16
- 127: <span class="ruby-keyword kw">end</span></pre>
13
+ <pre> <span class="ruby-comment cmt"># File lib/mongrel/command.rb, line 113</span>
14
+ 113: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">valid_dir?</span>(<span class="ruby-identifier">file</span>, <span class="ruby-identifier">message</span>)
15
+ 114: <span class="ruby-identifier">valid?</span>(<span class="ruby-identifier">file</span> <span class="ruby-operator">!=</span> <span class="ruby-keyword kw">nil</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">directory?</span>(<span class="ruby-identifier">file</span>), <span class="ruby-identifier">message</span>)
16
+ 115: <span class="ruby-keyword kw">end</span></pre>
17
17
  </body>
18
18
  </html>
@@ -10,15 +10,15 @@
10
10
  <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre> <span class="ruby-comment cmt"># File lib/mongrel/command.rb, line 129</span>
14
- 129: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">valid_user?</span>(<span class="ruby-identifier">user</span>)
15
- 130: <span class="ruby-identifier">valid?</span>(<span class="ruby-ivar">@group</span>, <span class="ruby-value str">&quot;You must also specify a group.&quot;</span>)
16
- 131: <span class="ruby-keyword kw">begin</span>
17
- 132: <span class="ruby-constant">Etc</span>.<span class="ruby-identifier">getpwnam</span>(<span class="ruby-identifier">user</span>)
18
- 133: <span class="ruby-keyword kw">rescue</span>
19
- 134: <span class="ruby-identifier">failure</span> <span class="ruby-node">&quot;User does not exist: #{user}&quot;</span>
20
- 135: <span class="ruby-ivar">@valid</span> = <span class="ruby-keyword kw">false</span>
21
- 136: <span class="ruby-keyword kw">end</span>
22
- 137: <span class="ruby-keyword kw">end</span></pre>
13
+ <pre> <span class="ruby-comment cmt"># File lib/mongrel/command.rb, line 117</span>
14
+ 117: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">valid_user?</span>(<span class="ruby-identifier">user</span>)
15
+ 118: <span class="ruby-identifier">valid?</span>(<span class="ruby-ivar">@group</span>, <span class="ruby-value str">&quot;You must also specify a group.&quot;</span>)
16
+ 119: <span class="ruby-keyword kw">begin</span>
17
+ 120: <span class="ruby-constant">Etc</span>.<span class="ruby-identifier">getpwnam</span>(<span class="ruby-identifier">user</span>)
18
+ 121: <span class="ruby-keyword kw">rescue</span>
19
+ 122: <span class="ruby-identifier">failure</span> <span class="ruby-node">&quot;User does not exist: #{user}&quot;</span>
20
+ 123: <span class="ruby-ivar">@valid</span> = <span class="ruby-keyword kw">false</span>
21
+ 124: <span class="ruby-keyword kw">end</span>
22
+ 125: <span class="ruby-keyword kw">end</span></pre>
23
23
  </body>
24
24
  </html>
@@ -10,15 +10,15 @@
10
10
  <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre> <span class="ruby-comment cmt"># File lib/mongrel/command.rb, line 139</span>
14
- 139: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">valid_group?</span>(<span class="ruby-identifier">group</span>)
15
- 140: <span class="ruby-identifier">valid?</span>(<span class="ruby-ivar">@user</span>, <span class="ruby-value str">&quot;You must also specify a user.&quot;</span>)
16
- 141: <span class="ruby-keyword kw">begin</span>
17
- 142: <span class="ruby-constant">Etc</span>.<span class="ruby-identifier">getgrnam</span>(<span class="ruby-identifier">group</span>)
18
- 143: <span class="ruby-keyword kw">rescue</span>
19
- 144: <span class="ruby-identifier">failure</span> <span class="ruby-node">&quot;Group does not exist: #{group}&quot;</span>
20
- 145: <span class="ruby-ivar">@valid</span> = <span class="ruby-keyword kw">false</span>
21
- 146: <span class="ruby-keyword kw">end</span>
22
- 147: <span class="ruby-keyword kw">end</span></pre>
13
+ <pre> <span class="ruby-comment cmt"># File lib/mongrel/command.rb, line 127</span>
14
+ 127: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">valid_group?</span>(<span class="ruby-identifier">group</span>)
15
+ 128: <span class="ruby-identifier">valid?</span>(<span class="ruby-ivar">@user</span>, <span class="ruby-value str">&quot;You must also specify a user.&quot;</span>)
16
+ 129: <span class="ruby-keyword kw">begin</span>
17
+ 130: <span class="ruby-constant">Etc</span>.<span class="ruby-identifier">getgrnam</span>(<span class="ruby-identifier">group</span>)
18
+ 131: <span class="ruby-keyword kw">rescue</span>
19
+ 132: <span class="ruby-identifier">failure</span> <span class="ruby-node">&quot;Group does not exist: #{group}&quot;</span>
20
+ 133: <span class="ruby-ivar">@valid</span> = <span class="ruby-keyword kw">false</span>
21
+ 134: <span class="ruby-keyword kw">end</span>
22
+ 135: <span class="ruby-keyword kw">end</span></pre>
23
23
  </body>
24
24
  </html>
@@ -10,9 +10,9 @@
10
10
  <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre> <span class="ruby-comment cmt"># File lib/mongrel/command.rb, line 150</span>
14
- 150: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">failure</span>(<span class="ruby-identifier">message</span>)
15
- 151: <span class="ruby-constant">STDERR</span>.<span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;!!! #{message}&quot;</span>
16
- 152: <span class="ruby-keyword kw">end</span></pre>
13
+ <pre> <span class="ruby-comment cmt"># File lib/mongrel/command.rb, line 138</span>
14
+ 138: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">failure</span>(<span class="ruby-identifier">message</span>)
15
+ 139: <span class="ruby-constant">STDERR</span>.<span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;!!! #{message}&quot;</span>
16
+ 140: <span class="ruby-keyword kw">end</span></pre>
17
17
  </body>
18
18
  </html>
@@ -10,11 +10,11 @@
10
10
  <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre> <span class="ruby-comment cmt"># File lib/mongrel/command.rb, line 161</span>
14
- 161: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">commands</span>
15
- 162: <span class="ruby-identifier">pmgr</span> = <span class="ruby-constant">GemPlugin</span><span class="ruby-operator">::</span><span class="ruby-constant">Manager</span>.<span class="ruby-identifier">instance</span>
16
- 163: <span class="ruby-identifier">list</span> = <span class="ruby-identifier">pmgr</span>.<span class="ruby-identifier">plugins</span>[<span class="ruby-value str">&quot;/commands&quot;</span>].<span class="ruby-identifier">keys</span>
17
- 164: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">list</span>.<span class="ruby-identifier">sort</span>
18
- 165: <span class="ruby-keyword kw">end</span></pre>
13
+ <pre> <span class="ruby-comment cmt"># File lib/mongrel/command.rb, line 149</span>
14
+ 149: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">commands</span>
15
+ 150: <span class="ruby-identifier">pmgr</span> = <span class="ruby-constant">GemPlugin</span><span class="ruby-operator">::</span><span class="ruby-constant">Manager</span>.<span class="ruby-identifier">instance</span>
16
+ 151: <span class="ruby-identifier">list</span> = <span class="ruby-identifier">pmgr</span>.<span class="ruby-identifier">plugins</span>[<span class="ruby-value str">&quot;/commands&quot;</span>].<span class="ruby-identifier">keys</span>
17
+ 152: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">list</span>.<span class="ruby-identifier">sort</span>
18
+ 153: <span class="ruby-keyword kw">end</span></pre>
19
19
  </body>
20
20
  </html>
@@ -10,16 +10,16 @@
10
10
  <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre> <span class="ruby-comment cmt"># File lib/mongrel/command.rb, line 168</span>
14
- 168: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">print_command_list</span>
15
- 169: <span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;#{Mongrel::Command::BANNER}\nAvailable commands are:\n\n&quot;</span>
16
- 170:
17
- 171: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">commands</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">name</span><span class="ruby-operator">|</span>
18
- 172: <span class="ruby-identifier">puts</span> <span class="ruby-node">&quot; - #{name[1 .. -1]}\n&quot;</span>
19
- 173: <span class="ruby-keyword kw">end</span>
20
- 174:
21
- 175: <span class="ruby-identifier">puts</span> <span class="ruby-value str">&quot;\nEach command takes -h as an option to get help.&quot;</span>
22
- 176:
23
- 177: <span class="ruby-keyword kw">end</span></pre>
13
+ <pre> <span class="ruby-comment cmt"># File lib/mongrel/command.rb, line 156</span>
14
+ 156: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">print_command_list</span>
15
+ 157: <span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;#{Mongrel::Command::BANNER}\nAvailable commands are:\n\n&quot;</span>
16
+ 158:
17
+ 159: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">commands</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">name</span><span class="ruby-operator">|</span>
18
+ 160: <span class="ruby-identifier">puts</span> <span class="ruby-node">&quot; - #{name[1 .. -1]}\n&quot;</span>
19
+ 161: <span class="ruby-keyword kw">end</span>
20
+ 162:
21
+ 163: <span class="ruby-identifier">puts</span> <span class="ruby-value str">&quot;\nEach command takes -h as an option to get help.&quot;</span>
22
+ 164:
23
+ 165: <span class="ruby-keyword kw">end</span></pre>
24
24
  </body>
25
25
  </html>
@@ -10,41 +10,41 @@
10
10
  <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
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">&quot;?&quot;</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">&quot;help&quot;</span>
13
+ <pre> <span class="ruby-comment cmt"># File lib/mongrel/command.rb, line 170</span>
14
+ 170: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">run</span>(<span class="ruby-identifier">args</span>)
15
+ 171: <span class="ruby-comment cmt"># find the command</span>
16
+ 172: <span class="ruby-identifier">cmd_name</span> = <span class="ruby-identifier">args</span>.<span class="ruby-identifier">shift</span>
17
+ 173:
18
+ 174: <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">&quot;?&quot;</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">&quot;help&quot;</span>
19
+ 175: <span class="ruby-identifier">print_command_list</span>
20
+ 176: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span>
21
+ 177: <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">cmd_name</span> <span class="ruby-operator">==</span> <span class="ruby-value str">&quot;--version&quot;</span>
22
+ 178: <span class="ruby-constant">STDERR</span>.<span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;Mongrel Web Server #{Mongrel::Const::MONGREL_VERSION}&quot;</span>
23
+ 179: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span>
24
+ 180: <span class="ruby-keyword kw">end</span>
25
+ 181:
26
+ 182: <span class="ruby-comment cmt"># command exists, set it up and validate it</span>
27
+ 183: <span class="ruby-keyword kw">begin</span>
28
+ 184: <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">&quot;/commands/#{cmd_name}&quot;</span>, <span class="ruby-identifier">:argv</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">args</span>)
29
+ 185: <span class="ruby-keyword kw">rescue</span>
30
+ 186: <span class="ruby-constant">STDERR</span>.<span class="ruby-identifier">puts</span> <span class="ruby-value str">&quot;INVALID COMMAND: #$!&quot;</span>
19
31
  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">&quot;--version&quot;</span>
22
- 190: <span class="ruby-constant">STDERR</span>.<span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;Mongrel Web Server #{Mongrel::Const::MONGREL_VERSION}&quot;</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">&quot;/commands/#{cmd_name}&quot;</span>, <span class="ruby-identifier">:argv</span> =<span class="ruby-operator">&gt;</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">&quot;INVALID COMMAND: #$!&quot;</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>
32
+ 188: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span>
33
+ 189: <span class="ruby-keyword kw">end</span>
34
+ 190:
35
+ 191: <span class="ruby-comment cmt"># Normally the command is NOT valid right after being created</span>
36
+ 192: <span class="ruby-comment cmt"># but sometimes (like with -h or -v) there's no further processing</span>
37
+ 193: <span class="ruby-comment cmt"># needed so the command is already valid so we can skip it.</span>
38
+ 194: <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
+ 195: <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
+ 196: <span class="ruby-constant">STDERR</span>.<span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;#{cmd_name} reported an error. Use mongrel_rails #{cmd_name} -h to get help.&quot;</span>
41
+ 197: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span>
42
+ 198: <span class="ruby-keyword kw">else</span>
43
+ 199: <span class="ruby-identifier">command</span>.<span class="ruby-identifier">run</span>
44
+ 200: <span class="ruby-keyword kw">end</span>
33
45
  201: <span class="ruby-keyword kw">end</span>
34
46
  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">&quot;#{cmd_name} reported an error. Use mongrel_rails #{cmd_name} -h to get help.&quot;</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>
47
+ 203: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span>
48
+ 204: <span class="ruby-keyword kw">end</span></pre>
49
49
  </body>
50
50
  </html>
@@ -311,7 +311,7 @@ gem/library if NOT win32.
311
311
  <div class="method-heading">
312
312
  <a href="Configurator.src/M000127.html" target="Code" class="method-signature"
313
313
  onclick="popupCode('Configurator.src/M000127.html');return false;">
314
- <span class="method-name">debug</span><span class="method-args">(location, what = [:object, :rails, :files, :threads, :params])</span>
314
+ <span class="method-name">debug</span><span class="method-args">(location, what = [:objects, :rails, :files, :threads, :params])</span>
315
315
  </a>
316
316
  </div>
317
317
 
@@ -332,7 +332,7 @@ 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, :rails, :files, :threads, :params
335
+ options are: :objects, :rails, :files, :threads, :params
336
336
  </p>
337
337
  <p>
338
338
  NOTE: Use [:files] to get accesses dumped to stderr like with WEBrick.
@@ -10,18 +10,18 @@
10
10
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre> <span class="ruby-comment cmt"># File lib/mongrel.rb, line 754</span>
14
- 754: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">defaults</span>={}, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">blk</span>)
15
- 755: <span class="ruby-ivar">@listener</span> = <span class="ruby-keyword kw">nil</span>
16
- 756: <span class="ruby-ivar">@listener_name</span> = <span class="ruby-keyword kw">nil</span>
17
- 757: <span class="ruby-ivar">@listeners</span> = {}
18
- 758: <span class="ruby-ivar">@defaults</span> = <span class="ruby-identifier">defaults</span>
19
- 759: <span class="ruby-ivar">@needs_restart</span> = <span class="ruby-keyword kw">false</span>
20
- 760: <span class="ruby-ivar">@pid_file</span> = <span class="ruby-identifier">defaults</span>[<span class="ruby-identifier">:pid_file</span>]
21
- 761:
22
- 762: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">blk</span>
23
- 763: <span class="ruby-identifier">cloaker</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">blk</span>).<span class="ruby-identifier">bind</span>(<span class="ruby-keyword kw">self</span>).<span class="ruby-identifier">call</span>
24
- 764: <span class="ruby-keyword kw">end</span>
25
- 765: <span class="ruby-keyword kw">end</span></pre>
13
+ <pre> <span class="ruby-comment cmt"># File lib/mongrel.rb, line 741</span>
14
+ 741: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">defaults</span>={}, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">blk</span>)
15
+ 742: <span class="ruby-ivar">@listener</span> = <span class="ruby-keyword kw">nil</span>
16
+ 743: <span class="ruby-ivar">@listener_name</span> = <span class="ruby-keyword kw">nil</span>
17
+ 744: <span class="ruby-ivar">@listeners</span> = {}
18
+ 745: <span class="ruby-ivar">@defaults</span> = <span class="ruby-identifier">defaults</span>
19
+ 746: <span class="ruby-ivar">@needs_restart</span> = <span class="ruby-keyword kw">false</span>
20
+ 747: <span class="ruby-ivar">@pid_file</span> = <span class="ruby-identifier">defaults</span>[<span class="ruby-identifier">:pid_file</span>]
21
+ 748:
22
+ 749: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">blk</span>
23
+ 750: <span class="ruby-identifier">cloaker</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">blk</span>).<span class="ruby-identifier">bind</span>(<span class="ruby-keyword kw">self</span>).<span class="ruby-identifier">call</span>
24
+ 751: <span class="ruby-keyword kw">end</span>
25
+ 752: <span class="ruby-keyword kw">end</span></pre>
26
26
  </body>
27
27
  </html>