mongrel 0.3.13.3 → 0.3.13.4
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +5 -4
- data/bin/mongrel_rails +162 -169
- data/doc/rdoc/classes/IO.src/M000001.html +5 -5
- data/doc/rdoc/classes/IO.src/M000002.html +5 -5
- data/doc/rdoc/classes/Kernel.html +10 -10
- data/doc/rdoc/classes/Kernel.src/M000010.html +19 -0
- data/doc/rdoc/classes/Kernel.src/M000011.html +23 -0
- data/doc/rdoc/classes/Mongrel.html +27 -10
- data/doc/rdoc/classes/Mongrel/CGIWrapper.html +67 -54
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/{M000101.html → M000112.html} +11 -10
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/{M000102.html → M000113.html} +31 -31
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/{M000103.html → M000114.html} +20 -20
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000115.html +32 -0
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/{M000105.html → M000116.html} +11 -11
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/{M000106.html → M000117.html} +4 -4
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/{M000107.html → M000118.html} +4 -4
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/{M000108.html → M000119.html} +4 -4
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/{M000109.html → M000120.html} +5 -5
- data/doc/rdoc/classes/Mongrel/Camping.html +5 -5
- data/doc/rdoc/classes/Mongrel/Camping.src/{M000048.html → M000039.html} +0 -0
- data/doc/rdoc/classes/Mongrel/Camping/CampingHandler.html +10 -10
- data/doc/rdoc/classes/Mongrel/Camping/CampingHandler.src/{M000049.html → M000040.html} +0 -0
- data/doc/rdoc/classes/Mongrel/Camping/CampingHandler.src/{M000050.html → M000041.html} +0 -0
- data/doc/rdoc/classes/Mongrel/Command/Base.html +65 -65
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000016.html +24 -0
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000017.html +42 -0
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000018.html +18 -0
- data/doc/rdoc/classes/Mongrel/Command/Base.src/{M000029.html → M000019.html} +0 -0
- data/doc/rdoc/classes/Mongrel/Command/Base.src/{M000030.html → M000020.html} +0 -0
- data/doc/rdoc/classes/Mongrel/Command/Base.src/{M000031.html → M000021.html} +0 -0
- data/doc/rdoc/classes/Mongrel/Command/Base.src/{M000032.html → M000022.html} +0 -0
- data/doc/rdoc/classes/Mongrel/Command/Base.src/{M000033.html → M000023.html} +0 -0
- data/doc/rdoc/classes/Mongrel/Command/Base.src/{M000034.html → M000024.html} +0 -0
- data/doc/rdoc/classes/Mongrel/Command/Base.src/{M000035.html → M000025.html} +0 -0
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000026.html +11 -11
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000027.html +11 -29
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000028.html +5 -5
- data/doc/rdoc/classes/Mongrel/Command/Registry.html +15 -15
- data/doc/rdoc/classes/Mongrel/Command/Registry.src/{M000039.html → M000029.html} +0 -0
- data/doc/rdoc/classes/Mongrel/Command/Registry.src/{M000040.html → M000030.html} +10 -6
- data/doc/rdoc/classes/Mongrel/Command/Registry.src/M000031.html +58 -0
- data/doc/rdoc/classes/Mongrel/Configurator.html +115 -115
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000091.html +27 -0
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000092.html +31 -0
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000093.html +21 -0
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000094.html +20 -0
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000095.html +23 -0
- data/doc/rdoc/classes/Mongrel/Configurator.src/{M000115.html → M000096.html} +4 -4
- data/doc/rdoc/classes/Mongrel/Configurator.src/{M000116.html → M000097.html} +24 -24
- data/doc/rdoc/classes/Mongrel/Configurator.src/{M000117.html → M000098.html} +5 -5
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000099.html +39 -0
- data/doc/rdoc/classes/Mongrel/Configurator.src/{M000119.html → M000100.html} +19 -19
- data/doc/rdoc/classes/Mongrel/Configurator.src/{M000120.html → M000101.html} +4 -4
- data/doc/rdoc/classes/Mongrel/Configurator.src/{M000121.html → M000102.html} +10 -10
- data/doc/rdoc/classes/Mongrel/Configurator.src/{M000122.html → M000103.html} +5 -5
- data/doc/rdoc/classes/Mongrel/Configurator.src/{M000123.html → M000104.html} +4 -4
- data/doc/rdoc/classes/Mongrel/Configurator.src/{M000124.html → M000105.html} +8 -8
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000106.html +22 -0
- data/doc/rdoc/classes/Mongrel/Configurator.src/{M000126.html → M000107.html} +4 -4
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000108.html +34 -0
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000109.html +18 -0
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000110.html +23 -14
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000111.html +5 -18
- data/doc/rdoc/classes/Mongrel/Const.html +11 -6
- data/doc/rdoc/classes/Mongrel/DeflateFilter.html +10 -10
- data/doc/rdoc/classes/Mongrel/DeflateFilter.src/{M000099.html → M000121.html} +5 -5
- data/doc/rdoc/classes/Mongrel/DeflateFilter.src/{M000100.html → M000122.html} +14 -14
- data/doc/rdoc/classes/Mongrel/DirHandler.html +31 -31
- data/doc/rdoc/classes/Mongrel/DirHandler.src/{M000058.html → M000049.html} +0 -0
- data/doc/rdoc/classes/Mongrel/DirHandler.src/{M000059.html → M000050.html} +0 -0
- data/doc/rdoc/classes/Mongrel/DirHandler.src/{M000060.html → M000051.html} +12 -16
- data/doc/rdoc/classes/Mongrel/DirHandler.src/M000052.html +63 -0
- data/doc/rdoc/classes/Mongrel/DirHandler.src/{M000062.html → M000053.html} +25 -25
- data/doc/rdoc/classes/Mongrel/DirHandler.src/{M000063.html → M000054.html} +4 -4
- data/doc/rdoc/classes/Mongrel/Error404Handler.html +10 -10
- data/doc/rdoc/classes/Mongrel/Error404Handler.src/{M000131.html → M000123.html} +0 -0
- data/doc/rdoc/classes/Mongrel/Error404Handler.src/{M000132.html → M000124.html} +0 -0
- data/doc/rdoc/classes/Mongrel/HeaderOut.html +10 -10
- data/doc/rdoc/classes/Mongrel/HeaderOut.src/{M000072.html → M000064.html} +4 -4
- data/doc/rdoc/classes/Mongrel/HeaderOut.src/{M000073.html → M000065.html} +4 -4
- data/doc/rdoc/classes/Mongrel/HttpHandler.html +15 -15
- data/doc/rdoc/classes/Mongrel/HttpHandler.src/{M000078.html → M000070.html} +0 -0
- data/doc/rdoc/classes/Mongrel/HttpHandler.src/{M000079.html → M000071.html} +0 -0
- data/doc/rdoc/classes/Mongrel/HttpHandler.src/{M000080.html → M000072.html} +0 -0
- data/doc/rdoc/classes/Mongrel/HttpHandlerPlugin.html +20 -20
- data/doc/rdoc/classes/Mongrel/HttpHandlerPlugin.src/{M000022.html → M000012.html} +0 -0
- data/doc/rdoc/classes/Mongrel/HttpHandlerPlugin.src/{M000023.html → M000013.html} +0 -0
- data/doc/rdoc/classes/Mongrel/HttpHandlerPlugin.src/{M000024.html → M000014.html} +0 -0
- data/doc/rdoc/classes/Mongrel/HttpHandlerPlugin.src/{M000025.html → M000015.html} +0 -0
- data/doc/rdoc/classes/Mongrel/HttpParams.html +131 -0
- data/doc/rdoc/classes/Mongrel/HttpParser.html +35 -35
- data/doc/rdoc/classes/Mongrel/HttpParser.src/{M000051.html → M000042.html} +1 -1
- data/doc/rdoc/classes/Mongrel/HttpParser.src/{M000052.html → M000043.html} +1 -1
- data/doc/rdoc/classes/Mongrel/HttpParser.src/{M000053.html → M000044.html} +1 -1
- data/doc/rdoc/classes/Mongrel/HttpParser.src/{M000054.html → M000045.html} +3 -3
- data/doc/rdoc/classes/Mongrel/HttpParser.src/{M000055.html → M000046.html} +1 -1
- data/doc/rdoc/classes/Mongrel/HttpParser.src/{M000056.html → M000047.html} +1 -1
- data/doc/rdoc/classes/Mongrel/HttpParser.src/{M000057.html → M000048.html} +1 -1
- data/doc/rdoc/classes/Mongrel/HttpRequest.html +63 -24
- data/doc/rdoc/classes/Mongrel/HttpRequest.src/M000130.html +47 -0
- data/doc/rdoc/classes/Mongrel/HttpRequest.src/M000131.html +37 -0
- data/doc/rdoc/classes/Mongrel/HttpRequest.src/M000132.html +29 -0
- data/doc/rdoc/classes/Mongrel/HttpRequest.src/{M000139.html → M000133.html} +6 -6
- data/doc/rdoc/classes/Mongrel/HttpRequest.src/{M000140.html → M000134.html} +6 -6
- data/doc/rdoc/classes/Mongrel/HttpRequest.src/{M000141.html → M000135.html} +18 -18
- data/doc/rdoc/classes/Mongrel/HttpResponse.html +66 -72
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000073.html +25 -0
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000074.html +20 -0
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000075.html +26 -0
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000076.html +22 -0
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/{M000085.html → M000077.html} +8 -8
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/{M000086.html → M000078.html} +8 -8
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000079.html +31 -0
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/{M000088.html → M000080.html} +7 -7
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000081.html +7 -12
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000082.html +7 -7
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000083.html +7 -12
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000084.html +5 -9
- data/doc/rdoc/classes/Mongrel/HttpServer.html +58 -43
- data/doc/rdoc/classes/Mongrel/HttpServer.src/{M000064.html → M000055.html} +11 -11
- data/doc/rdoc/classes/Mongrel/HttpServer.src/{M000065.html → M000056.html} +76 -72
- data/doc/rdoc/classes/Mongrel/HttpServer.src/{M000066.html → M000057.html} +18 -17
- data/doc/rdoc/classes/Mongrel/HttpServer.src/{M000067.html → M000058.html} +7 -7
- data/doc/rdoc/classes/Mongrel/HttpServer.src/M000059.html +22 -0
- data/doc/rdoc/classes/Mongrel/HttpServer.src/M000060.html +62 -0
- data/doc/rdoc/classes/Mongrel/HttpServer.src/{M000069.html → M000061.html} +20 -20
- data/doc/rdoc/classes/Mongrel/HttpServer.src/{M000070.html → M000062.html} +4 -4
- data/doc/rdoc/classes/Mongrel/HttpServer.src/{M000071.html → M000063.html} +8 -8
- data/doc/rdoc/classes/Mongrel/Rails/RailsConfigurator.html +15 -15
- data/doc/rdoc/classes/Mongrel/Rails/RailsConfigurator.src/{M000042.html → M000032.html} +23 -25
- data/doc/rdoc/classes/Mongrel/Rails/RailsConfigurator.src/{M000043.html → M000033.html} +11 -11
- data/doc/rdoc/classes/Mongrel/Rails/RailsConfigurator.src/{M000044.html → M000034.html} +12 -12
- data/doc/rdoc/classes/Mongrel/Rails/RailsHandler.html +30 -15
- data/doc/rdoc/classes/Mongrel/Rails/RailsHandler.src/{M000045.html → M000035.html} +9 -8
- data/doc/rdoc/classes/Mongrel/Rails/RailsHandler.src/M000036.html +54 -0
- data/doc/rdoc/classes/Mongrel/Rails/RailsHandler.src/M000037.html +21 -0
- data/doc/rdoc/classes/Mongrel/Rails/RailsHandler.src/M000038.html +25 -0
- data/doc/rdoc/classes/Mongrel/RedirectHandler.html +10 -10
- data/doc/rdoc/classes/Mongrel/RedirectHandler.src/{M000136.html → M000128.html} +8 -8
- data/doc/rdoc/classes/Mongrel/RedirectHandler.src/{M000137.html → M000129.html} +13 -13
- data/doc/rdoc/classes/Mongrel/StatisticsFilter.html +16 -16
- data/doc/rdoc/classes/Mongrel/StatisticsFilter.src/M000125.html +24 -0
- data/doc/rdoc/classes/Mongrel/StatisticsFilter.src/{M000134.html → M000126.html} +10 -10
- data/doc/rdoc/classes/Mongrel/StatisticsFilter.src/{M000135.html → M000127.html} +4 -4
- data/doc/rdoc/classes/{Stats.html → Mongrel/Stats.html} +44 -60
- data/doc/rdoc/classes/Mongrel/Stats.src/M000136.html +19 -0
- data/doc/rdoc/classes/Mongrel/Stats.src/M000137.html +23 -0
- data/doc/rdoc/classes/Mongrel/Stats.src/M000138.html +26 -0
- data/doc/rdoc/classes/Mongrel/Stats.src/M000139.html +18 -0
- data/doc/rdoc/classes/{Stats.src/M000009.html → Mongrel/Stats.src/M000140.html} +6 -6
- data/doc/rdoc/classes/Mongrel/Stats.src/M000141.html +18 -0
- data/doc/rdoc/classes/Mongrel/Stats.src/M000142.html +23 -0
- data/doc/rdoc/classes/Mongrel/Stats.src/M000143.html +20 -0
- data/doc/rdoc/classes/Mongrel/StatusHandler.html +20 -20
- data/doc/rdoc/classes/Mongrel/StatusHandler.src/{M000074.html → M000066.html} +4 -4
- data/doc/rdoc/classes/Mongrel/StatusHandler.src/{M000075.html → M000067.html} +10 -10
- data/doc/rdoc/classes/Mongrel/StatusHandler.src/{M000076.html → M000068.html} +28 -28
- data/doc/rdoc/classes/Mongrel/StatusHandler.src/{M000077.html → M000069.html} +6 -6
- data/doc/rdoc/classes/Mongrel/URIClassifier.html +30 -30
- data/doc/rdoc/classes/Mongrel/URIClassifier.src/{M000093.html → M000085.html} +4 -4
- data/doc/rdoc/classes/Mongrel/URIClassifier.src/{M000094.html → M000086.html} +4 -4
- data/doc/rdoc/classes/Mongrel/URIClassifier.src/{M000095.html → M000087.html} +0 -0
- data/doc/rdoc/classes/Mongrel/URIClassifier.src/{M000096.html → M000088.html} +1 -1
- data/doc/rdoc/classes/Mongrel/URIClassifier.src/{M000097.html → M000089.html} +0 -0
- data/doc/rdoc/classes/Mongrel/URIClassifier.src/{M000098.html → M000090.html} +1 -1
- data/doc/rdoc/classes/MongrelDbg.html +26 -26
- data/doc/rdoc/classes/MongrelDbg.src/M000005.html +24 -0
- data/doc/rdoc/classes/MongrelDbg.src/{M000016.html → M000006.html} +6 -6
- data/doc/rdoc/classes/MongrelDbg.src/{M000017.html → M000007.html} +8 -8
- data/doc/rdoc/classes/MongrelDbg.src/{M000018.html → M000008.html} +7 -7
- data/doc/rdoc/classes/MongrelDbg.src/{M000019.html → M000009.html} +4 -4
- data/doc/rdoc/classes/RequestLog/Access.html +5 -5
- data/doc/rdoc/classes/RequestLog/Access.src/{M000142.html → M000144.html} +5 -5
- data/doc/rdoc/classes/RequestLog/Files.html +5 -5
- data/doc/rdoc/classes/RequestLog/Files.src/{M000143.html → M000145.html} +5 -5
- data/doc/rdoc/classes/RequestLog/Objects.html +12 -6
- data/doc/rdoc/classes/RequestLog/Objects.src/M000147.html +51 -0
- data/doc/rdoc/classes/RequestLog/Params.html +5 -5
- data/doc/rdoc/classes/RequestLog/Params.src/{M000146.html → M000148.html} +5 -5
- data/doc/rdoc/classes/RequestLog/Threads.html +5 -5
- data/doc/rdoc/classes/RequestLog/Threads.src/{M000144.html → M000146.html} +20 -20
- data/doc/rdoc/classes/{ObjectTracker.html → Sync.html} +26 -45
- data/doc/rdoc/created.rid +1 -1
- data/doc/rdoc/files/COPYING.html +1 -1
- data/doc/rdoc/files/LICENSE.html +1 -1
- data/doc/rdoc/files/README.html +1 -1
- data/doc/rdoc/files/ext/http11/http11_c.html +1 -1
- data/doc/rdoc/files/lib/mongrel/camping_rb.html +1 -1
- data/doc/rdoc/files/lib/mongrel/cgi_rb.html +1 -1
- data/doc/rdoc/files/lib/mongrel/command_rb.html +1 -1
- data/doc/rdoc/files/lib/mongrel/configurator_rb.html +111 -0
- data/doc/rdoc/files/lib/mongrel/debug_rb.html +1 -1
- data/doc/rdoc/files/lib/mongrel/handlers_rb.html +1 -1
- data/doc/rdoc/files/lib/mongrel/init_rb.html +1 -1
- data/doc/rdoc/files/lib/mongrel/rails_rb.html +2 -1
- data/doc/rdoc/files/lib/mongrel/stats_rb.html +1 -1
- data/doc/rdoc/files/lib/mongrel/tcphack_rb.html +1 -1
- data/doc/rdoc/files/lib/mongrel_rb.html +2 -4
- data/doc/rdoc/fr_class_index.html +3 -2
- data/doc/rdoc/fr_file_index.html +1 -0
- data/doc/rdoc/fr_method_index.html +144 -142
- data/ext/http11/http11.c +69 -52
- data/ext/http11/http11_parser.c +366 -282
- data/ext/http11/http11_parser.h +2 -0
- data/ext/http11/http11_parser.rl +192 -0
- data/lib/mongrel.rb +127 -433
- data/lib/mongrel/cgi.rb +19 -6
- data/lib/mongrel/command.rb +15 -3
- data/lib/mongrel/configurator.rb +374 -0
- data/lib/mongrel/debug.rb +47 -56
- data/lib/mongrel/handlers.rb +16 -20
- data/lib/mongrel/rails.rb +36 -20
- data/lib/mongrel/stats.rb +60 -58
- data/test/test_conditional.rb +37 -30
- data/test/test_http11.rb +14 -14
- data/test/test_stats.rb +2 -2
- data/test/test_ws.rb +4 -2
- data/tools/rakehelp.rb +4 -4
- metadata +262 -260
- data/doc/rdoc/classes/Kernel.src/M000020.html +0 -19
- data/doc/rdoc/classes/Kernel.src/M000021.html +0 -23
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000104.html +0 -27
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000036.html +0 -24
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000037.html +0 -24
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000038.html +0 -18
- data/doc/rdoc/classes/Mongrel/Command/Registry.src/M000041.html +0 -50
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000112.html +0 -20
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000113.html +0 -20
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000114.html +0 -23
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000118.html +0 -30
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000125.html +0 -25
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000127.html +0 -35
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000128.html +0 -18
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000129.html +0 -33
- data/doc/rdoc/classes/Mongrel/Configurator.src/M000130.html +0 -18
- data/doc/rdoc/classes/Mongrel/DirHandler.src/M000061.html +0 -63
- data/doc/rdoc/classes/Mongrel/HttpRequest.src/M000138.html +0 -56
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000087.html +0 -31
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000089.html +0 -20
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000090.html +0 -20
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000091.html +0 -20
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000092.html +0 -18
- data/doc/rdoc/classes/Mongrel/HttpServer.src/M000068.html +0 -50
- data/doc/rdoc/classes/Mongrel/Rails/RailsHandler.src/M000046.html +0 -51
- data/doc/rdoc/classes/Mongrel/Rails/RailsHandler.src/M000047.html +0 -23
- data/doc/rdoc/classes/Mongrel/StatisticsFilter.src/M000133.html +0 -24
- data/doc/rdoc/classes/MongrelDbg.src/M000015.html +0 -19
- data/doc/rdoc/classes/ObjectTracker.src/M000013.html +0 -27
- data/doc/rdoc/classes/ObjectTracker.src/M000014.html +0 -44
- data/doc/rdoc/classes/RequestLog/Objects.src/M000145.html +0 -19
- data/doc/rdoc/classes/Stats.src/M000005.html +0 -19
- data/doc/rdoc/classes/Stats.src/M000006.html +0 -23
- data/doc/rdoc/classes/Stats.src/M000007.html +0 -26
- data/doc/rdoc/classes/Stats.src/M000008.html +0 -18
- data/doc/rdoc/classes/Stats.src/M000010.html +0 -18
- data/doc/rdoc/classes/Stats.src/M000011.html +0 -23
- data/doc/rdoc/classes/Stats.src/M000012.html +0 -20
- data/lib/http11.so +0 -0
@@ -0,0 +1,24 @@
|
|
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>options (Mongrel::Command::Base)</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 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
|
+
</body>
|
24
|
+
</html>
|
@@ -0,0 +1,42 @@
|
|
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>new (Mongrel::Command::Base)</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 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">"-h"</span>, <span class="ruby-value str">"--help"</span>, <span class="ruby-value str">"Show this message"</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">"--version"</span>, <span class="ruby-value str">"Show version"</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">"Version #{Mongrel::Const::MONGREL_VERSION}"</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
|
+
</body>
|
42
|
+
</html>
|
@@ -0,0 +1,18 @@
|
|
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>configure (Mongrel::Command::Base)</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 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
|
+
</body>
|
18
|
+
</html>
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -5,20 +5,20 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>
|
8
|
+
<title>valid_user? (Mongrel::Command::Base)</title>
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
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>
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
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">"You must also specify a group."</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">"User does not exist: #{user}"</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>
|
@@ -5,38 +5,20 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>
|
8
|
+
<title>valid_group? (Mongrel::Command::Base)</title>
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
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>
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
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">"-h"</span>, <span class="ruby-value str">"--help"</span>, <span class="ruby-value str">"Show this message"</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">"--version"</span>, <span class="ruby-value str">"Show version"</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">"Version #{Mongrel::Const::MONGREL_VERSION}"</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>
|
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">"You must also specify a user."</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">"Group does not exist: #{group}"</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>
|
41
23
|
</body>
|
42
24
|
</html>
|
@@ -5,14 +5,14 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>
|
8
|
+
<title>failure (Mongrel::Command::Base)</title>
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
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>
|
14
|
-
|
15
|
-
|
16
|
-
|
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">"!!! #{message}"</span>
|
16
|
+
140: <span class="ruby-keyword kw">end</span></pre>
|
17
17
|
</body>
|
18
18
|
</html>
|
@@ -93,9 +93,9 @@ running them.
|
|
93
93
|
<h3 class="section-bar">Methods</h3>
|
94
94
|
|
95
95
|
<div class="name-list">
|
96
|
-
<a href="#
|
97
|
-
<a href="#
|
98
|
-
<a href="#
|
96
|
+
<a href="#M000029">commands</a>
|
97
|
+
<a href="#M000030">print_command_list</a>
|
98
|
+
<a href="#M000031">run</a>
|
99
99
|
</div>
|
100
100
|
</div>
|
101
101
|
|
@@ -124,12 +124,12 @@ running them.
|
|
124
124
|
<div id="methods">
|
125
125
|
<h3 class="section-bar">Public Instance methods</h3>
|
126
126
|
|
127
|
-
<div id="method-
|
128
|
-
<a name="
|
127
|
+
<div id="method-M000029" class="method-detail">
|
128
|
+
<a name="M000029"></a>
|
129
129
|
|
130
130
|
<div class="method-heading">
|
131
|
-
<a href="Registry.src/
|
132
|
-
onclick="popupCode('Registry.src/
|
131
|
+
<a href="Registry.src/M000029.html" target="Code" class="method-signature"
|
132
|
+
onclick="popupCode('Registry.src/M000029.html');return false;">
|
133
133
|
<span class="method-name">commands</span><span class="method-args">()</span>
|
134
134
|
</a>
|
135
135
|
</div>
|
@@ -142,12 +142,12 @@ href="../Command.html">Command</a> derivates list
|
|
142
142
|
</div>
|
143
143
|
</div>
|
144
144
|
|
145
|
-
<div id="method-
|
146
|
-
<a name="
|
145
|
+
<div id="method-M000030" class="method-detail">
|
146
|
+
<a name="M000030"></a>
|
147
147
|
|
148
148
|
<div class="method-heading">
|
149
|
-
<a href="Registry.src/
|
150
|
-
onclick="popupCode('Registry.src/
|
149
|
+
<a href="Registry.src/M000030.html" target="Code" class="method-signature"
|
150
|
+
onclick="popupCode('Registry.src/M000030.html');return false;">
|
151
151
|
<span class="method-name">print_command_list</span><span class="method-args">()</span>
|
152
152
|
</a>
|
153
153
|
</div>
|
@@ -159,12 +159,12 @@ Prints a list of available commands.
|
|
159
159
|
</div>
|
160
160
|
</div>
|
161
161
|
|
162
|
-
<div id="method-
|
163
|
-
<a name="
|
162
|
+
<div id="method-M000031" class="method-detail">
|
163
|
+
<a name="M000031"></a>
|
164
164
|
|
165
165
|
<div class="method-heading">
|
166
|
-
<a href="Registry.src/
|
167
|
-
onclick="popupCode('Registry.src/
|
166
|
+
<a href="Registry.src/M000031.html" target="Code" class="method-signature"
|
167
|
+
onclick="popupCode('Registry.src/M000031.html');return false;">
|
168
168
|
<span class="method-name">run</span><span class="method-args">(args)</span>
|
169
169
|
</a>
|
170
170
|
</div>
|
File without changes
|
@@ -15,11 +15,15 @@
|
|
15
15
|
157: <span class="ruby-identifier">puts</span> <span class="ruby-node">"#{Mongrel::Command::BANNER}\nAvailable commands are:\n\n"</span>
|
16
16
|
158:
|
17
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-
|
19
|
-
161:
|
20
|
-
162:
|
21
|
-
163:
|
22
|
-
164:
|
23
|
-
165:
|
18
|
+
160: <span class="ruby-keyword kw">if</span> <span class="ruby-regexp re">/mongrel::/</span> <span class="ruby-operator">=~</span> <span class="ruby-identifier">name</span>
|
19
|
+
161: <span class="ruby-identifier">name</span> = <span class="ruby-identifier">name</span>[<span class="ruby-value">9</span> <span class="ruby-operator">..</span> <span class="ruby-value">-1</span>]
|
20
|
+
162: <span class="ruby-keyword kw">end</span>
|
21
|
+
163:
|
22
|
+
164: <span class="ruby-identifier">puts</span> <span class="ruby-node">" - #{name[1 .. -1]}\n"</span>
|
23
|
+
165: <span class="ruby-keyword kw">end</span>
|
24
|
+
166:
|
25
|
+
167: <span class="ruby-identifier">puts</span> <span class="ruby-value str">"\nEach command takes -h as an option to get help."</span>
|
26
|
+
168:
|
27
|
+
169: <span class="ruby-keyword kw">end</span></pre>
|
24
28
|
</body>
|
25
29
|
</html>
|
@@ -0,0 +1,58 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>run (Mongrel::Command::Registry)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/mongrel/command.rb, line 174</span>
|
14
|
+
174: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">run</span>(<span class="ruby-identifier">args</span>)
|
15
|
+
175: <span class="ruby-comment cmt"># find the command</span>
|
16
|
+
176: <span class="ruby-identifier">cmd_name</span> = <span class="ruby-identifier">args</span>.<span class="ruby-identifier">shift</span>
|
17
|
+
177:
|
18
|
+
178: <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">cmd_name</span> <span class="ruby-keyword kw">or</span> <span class="ruby-identifier">cmd_name</span> <span class="ruby-operator">==</span> <span class="ruby-value str">"?"</span> <span class="ruby-keyword kw">or</span> <span class="ruby-identifier">cmd_name</span> <span class="ruby-operator">==</span> <span class="ruby-value str">"help"</span>
|
19
|
+
179: <span class="ruby-identifier">print_command_list</span>
|
20
|
+
180: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span>
|
21
|
+
181: <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">cmd_name</span> <span class="ruby-operator">==</span> <span class="ruby-value str">"--version"</span>
|
22
|
+
182: <span class="ruby-constant">STDERR</span>.<span class="ruby-identifier">puts</span> <span class="ruby-node">"Mongrel Web Server #{Mongrel::Const::MONGREL_VERSION}"</span>
|
23
|
+
183: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span>
|
24
|
+
184: <span class="ruby-keyword kw">end</span>
|
25
|
+
185:
|
26
|
+
186: <span class="ruby-keyword kw">begin</span>
|
27
|
+
187: <span class="ruby-comment cmt"># quick hack so that existing commands will keep working but the Mongrel:: ones can be moved</span>
|
28
|
+
188: <span class="ruby-keyword kw">if</span> [<span class="ruby-value str">"start"</span>, <span class="ruby-value str">"stop"</span>, <span class="ruby-value str">"restart"</span>].<span class="ruby-identifier">include?</span> <span class="ruby-identifier">cmd_name</span>
|
29
|
+
189: <span class="ruby-identifier">cmd_name</span> = <span class="ruby-value str">"mongrel::"</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">cmd_name</span>
|
30
|
+
190: <span class="ruby-keyword kw">end</span>
|
31
|
+
191:
|
32
|
+
192: <span class="ruby-identifier">command</span> = <span class="ruby-constant">GemPlugin</span><span class="ruby-operator">::</span><span class="ruby-constant">Manager</span>.<span class="ruby-identifier">instance</span>.<span class="ruby-identifier">create</span>(<span class="ruby-node">"/commands/#{cmd_name}"</span>, <span class="ruby-identifier">:argv</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">args</span>)
|
33
|
+
193: <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">OptionParser</span><span class="ruby-operator">::</span><span class="ruby-constant">InvalidOption</span>
|
34
|
+
194: <span class="ruby-constant">STDERR</span>.<span class="ruby-identifier">puts</span> <span class="ruby-node">"#$! for command '#{cmd_name}'"</span>
|
35
|
+
195: <span class="ruby-constant">STDERR</span>.<span class="ruby-identifier">puts</span> <span class="ruby-node">"Try #{cmd_name} -h to get help."</span>
|
36
|
+
196: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span>
|
37
|
+
197: <span class="ruby-keyword kw">rescue</span>
|
38
|
+
198: <span class="ruby-constant">STDERR</span>.<span class="ruby-identifier">puts</span> <span class="ruby-node">"ERROR RUNNING '#{cmd_name}': #$!"</span>
|
39
|
+
199: <span class="ruby-constant">STDERR</span>.<span class="ruby-identifier">puts</span> <span class="ruby-value str">"Use help command to get help"</span>
|
40
|
+
200: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span>
|
41
|
+
201: <span class="ruby-keyword kw">end</span>
|
42
|
+
202:
|
43
|
+
203: <span class="ruby-comment cmt"># Normally the command is NOT valid right after being created</span>
|
44
|
+
204: <span class="ruby-comment cmt"># but sometimes (like with -h or -v) there's no further processing</span>
|
45
|
+
205: <span class="ruby-comment cmt"># needed so the command is already valid so we can skip it.</span>
|
46
|
+
206: <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">not</span> <span class="ruby-identifier">command</span>.<span class="ruby-identifier">done_validating</span>
|
47
|
+
207: <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">not</span> <span class="ruby-identifier">command</span>.<span class="ruby-identifier">validate</span>
|
48
|
+
208: <span class="ruby-constant">STDERR</span>.<span class="ruby-identifier">puts</span> <span class="ruby-node">"#{cmd_name} reported an error. Use mongrel_rails #{cmd_name} -h to get help."</span>
|
49
|
+
209: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span>
|
50
|
+
210: <span class="ruby-keyword kw">else</span>
|
51
|
+
211: <span class="ruby-identifier">command</span>.<span class="ruby-identifier">run</span>
|
52
|
+
212: <span class="ruby-keyword kw">end</span>
|
53
|
+
213: <span class="ruby-keyword kw">end</span>
|
54
|
+
214:
|
55
|
+
215: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span>
|
56
|
+
216: <span class="ruby-keyword kw">end</span></pre>
|
57
|
+
</body>
|
58
|
+
</html>
|
@@ -55,8 +55,8 @@
|
|
55
55
|
<tr class="top-aligned-row">
|
56
56
|
<td><strong>In:</strong></td>
|
57
57
|
<td>
|
58
|
-
<a href="../../files/lib/
|
59
|
-
lib/mongrel.rb
|
58
|
+
<a href="../../files/lib/mongrel/configurator_rb.html">
|
59
|
+
lib/mongrel/configurator.rb
|
60
60
|
</a>
|
61
61
|
<br />
|
62
62
|
</td>
|
@@ -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#M000091">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="#M000092">change_privilege</a>
|
136
|
+
<a href="#M000095">cloaker</a>
|
137
|
+
<a href="#M000094">cloaking_class</a>
|
138
|
+
<a href="#M000099">daemonize</a>
|
139
|
+
<a href="#M000108">debug</a>
|
140
|
+
<a href="#M000107">join</a>
|
141
|
+
<a href="#M000097">listener</a>
|
142
|
+
<a href="#M000102">load_mime_map</a>
|
143
|
+
<a href="#M000100">load_plugins</a>
|
144
|
+
<a href="#M000101">load_yaml</a>
|
145
|
+
<a href="#M000111">log</a>
|
146
|
+
<a href="#M000091">new</a>
|
147
|
+
<a href="#M000103">plugin</a>
|
148
|
+
<a href="#M000104">redirect</a>
|
149
|
+
<a href="#M000096">resolve_defaults</a>
|
150
|
+
<a href="#M000105">run</a>
|
151
|
+
<a href="#M000109">run_config</a>
|
152
|
+
<a href="#M000110">setup_signals</a>
|
153
|
+
<a href="#M000106">stop</a>
|
154
|
+
<a href="#M000098">uri</a>
|
155
|
+
<a href="#M000093">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-M000091" class="method-detail">
|
201
|
+
<a name="M000091"></a>
|
202
202
|
|
203
203
|
<div class="method-heading">
|
204
|
-
<a href="Configurator.src/
|
205
|
-
onclick="popupCode('Configurator.src/
|
204
|
+
<a href="Configurator.src/M000091.html" target="Code" class="method-signature"
|
205
|
+
onclick="popupCode('Configurator.src/M000091.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-M000092" class="method-detail">
|
220
|
+
<a name="M000092"></a>
|
221
221
|
|
222
222
|
<div class="method-heading">
|
223
|
-
<a href="Configurator.src/
|
224
|
-
onclick="popupCode('Configurator.src/
|
223
|
+
<a href="Configurator.src/M000092.html" target="Code" class="method-signature"
|
224
|
+
onclick="popupCode('Configurator.src/M000092.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-M000095" class="method-detail">
|
237
|
+
<a name="M000095"></a>
|
238
238
|
|
239
239
|
<div class="method-heading">
|
240
|
-
<a href="Configurator.src/
|
241
|
-
onclick="popupCode('Configurator.src/
|
240
|
+
<a href="Configurator.src/M000095.html" target="Code" class="method-signature"
|
241
|
+
onclick="popupCode('Configurator.src/M000095.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-M000094" class="method-detail">
|
254
|
+
<a name="M000094"></a>
|
255
255
|
|
256
256
|
<div class="method-heading">
|
257
|
-
<a href="Configurator.src/
|
258
|
-
onclick="popupCode('Configurator.src/
|
257
|
+
<a href="Configurator.src/M000094.html" target="Code" class="method-signature"
|
258
|
+
onclick="popupCode('Configurator.src/M000094.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-M000099" class="method-detail">
|
271
|
+
<a name="M000099"></a>
|
272
272
|
|
273
273
|
<div class="method-heading">
|
274
|
-
<a href="Configurator.src/
|
275
|
-
onclick="popupCode('Configurator.src/
|
274
|
+
<a href="Configurator.src/M000099.html" target="Code" class="method-signature"
|
275
|
+
onclick="popupCode('Configurator.src/M000099.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-M000108" class="method-detail">
|
309
|
+
<a name="M000108"></a>
|
310
310
|
|
311
311
|
<div class="method-heading">
|
312
|
-
<a href="Configurator.src/
|
313
|
-
onclick="popupCode('Configurator.src/
|
312
|
+
<a href="Configurator.src/M000108.html" target="Code" class="method-signature"
|
313
|
+
onclick="popupCode('Configurator.src/M000108.html');return false;">
|
314
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>
|
@@ -340,12 +340,12 @@ NOTE: Use [:files] to get accesses dumped to stderr like with WEBrick.
|
|
340
340
|
</div>
|
341
341
|
</div>
|
342
342
|
|
343
|
-
<div id="method-
|
344
|
-
<a name="
|
343
|
+
<div id="method-M000107" class="method-detail">
|
344
|
+
<a name="M000107"></a>
|
345
345
|
|
346
346
|
<div class="method-heading">
|
347
|
-
<a href="Configurator.src/
|
348
|
-
onclick="popupCode('Configurator.src/
|
347
|
+
<a href="Configurator.src/M000107.html" target="Code" class="method-signature"
|
348
|
+
onclick="popupCode('Configurator.src/M000107.html');return false;">
|
349
349
|
<span class="method-name">join</span><span class="method-args">()</span>
|
350
350
|
</a>
|
351
351
|
</div>
|
@@ -359,12 +359,12 @@ In other words do it like: config.join.
|
|
359
359
|
</div>
|
360
360
|
</div>
|
361
361
|
|
362
|
-
<div id="method-
|
363
|
-
<a name="
|
362
|
+
<div id="method-M000097" class="method-detail">
|
363
|
+
<a name="M000097"></a>
|
364
364
|
|
365
365
|
<div class="method-heading">
|
366
|
-
<a href="Configurator.src/
|
367
|
-
onclick="popupCode('Configurator.src/
|
366
|
+
<a href="Configurator.src/M000097.html" target="Code" class="method-signature"
|
367
|
+
onclick="popupCode('Configurator.src/M000097.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 other words 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#M000098">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#M000100">load_plugins</a> and plugin to load them.
|
379
379
|
</p>
|
380
380
|
<p>
|
381
381
|
It expects the following options (or defaults):
|
@@ -405,12 +405,12 @@ It expects the following options (or defaults):
|
|
405
405
|
</div>
|
406
406
|
</div>
|
407
407
|
|
408
|
-
<div id="method-
|
409
|
-
<a name="
|
408
|
+
<div id="method-M000102" class="method-detail">
|
409
|
+
<a name="M000102"></a>
|
410
410
|
|
411
411
|
<div class="method-heading">
|
412
|
-
<a href="Configurator.src/
|
413
|
-
onclick="popupCode('Configurator.src/
|
412
|
+
<a href="Configurator.src/M000102.html" target="Code" class="method-signature"
|
413
|
+
onclick="popupCode('Configurator.src/M000102.html');return false;">
|
414
414
|
<span class="method-name">load_mime_map</span><span class="method-args">(file, mime={})</span>
|
415
415
|
</a>
|
416
416
|
</div>
|
@@ -427,12 +427,12 @@ MIME types map is organized.
|
|
427
427
|
</div>
|
428
428
|
</div>
|
429
429
|
|
430
|
-
<div id="method-
|
431
|
-
<a name="
|
430
|
+
<div id="method-M000100" class="method-detail">
|
431
|
+
<a name="M000100"></a>
|
432
432
|
|
433
433
|
<div class="method-heading">
|
434
|
-
<a href="Configurator.src/
|
435
|
-
onclick="popupCode('Configurator.src/
|
434
|
+
<a href="Configurator.src/M000100.html" target="Code" class="method-signature"
|
435
|
+
onclick="popupCode('Configurator.src/M000100.html');return false;">
|
436
436
|
<span class="method-name">load_plugins</span><span class="method-args">(options={})</span>
|
437
437
|
</a>
|
438
438
|
</div>
|
@@ -447,12 +447,12 @@ determining the dependencies.
|
|
447
447
|
</div>
|
448
448
|
</div>
|
449
449
|
|
450
|
-
<div id="method-
|
451
|
-
<a name="
|
450
|
+
<div id="method-M000101" class="method-detail">
|
451
|
+
<a name="M000101"></a>
|
452
452
|
|
453
453
|
<div class="method-heading">
|
454
|
-
<a href="Configurator.src/
|
455
|
-
onclick="popupCode('Configurator.src/
|
454
|
+
<a href="Configurator.src/M000101.html" target="Code" class="method-signature"
|
455
|
+
onclick="popupCode('Configurator.src/M000101.html');return false;">
|
456
456
|
<span class="method-name">load_yaml</span><span class="method-args">(file, default={})</span>
|
457
457
|
</a>
|
458
458
|
</div>
|
@@ -464,12 +464,12 @@ Easy way to load a YAML file and apply default settings.
|
|
464
464
|
</div>
|
465
465
|
</div>
|
466
466
|
|
467
|
-
<div id="method-
|
468
|
-
<a name="
|
467
|
+
<div id="method-M000111" class="method-detail">
|
468
|
+
<a name="M000111"></a>
|
469
469
|
|
470
470
|
<div class="method-heading">
|
471
|
-
<a href="Configurator.src/
|
472
|
-
onclick="popupCode('Configurator.src/
|
471
|
+
<a href="Configurator.src/M000111.html" target="Code" class="method-signature"
|
472
|
+
onclick="popupCode('Configurator.src/M000111.html');return false;">
|
473
473
|
<span class="method-name">log</span><span class="method-args">(msg)</span>
|
474
474
|
</a>
|
475
475
|
</div>
|
@@ -481,12 +481,12 @@ Logs a simple message to STDERR (or the mongrel log if in daemon mode).
|
|
481
481
|
</div>
|
482
482
|
</div>
|
483
483
|
|
484
|
-
<div id="method-
|
485
|
-
<a name="
|
484
|
+
<div id="method-M000103" class="method-detail">
|
485
|
+
<a name="M000103"></a>
|
486
486
|
|
487
487
|
<div class="method-heading">
|
488
|
-
<a href="Configurator.src/
|
489
|
-
onclick="popupCode('Configurator.src/
|
488
|
+
<a href="Configurator.src/M000103.html" target="Code" class="method-signature"
|
489
|
+
onclick="popupCode('Configurator.src/M000103.html');return false;">
|
490
490
|
<span class="method-name">plugin</span><span class="method-args">(name, options={})</span>
|
491
491
|
</a>
|
492
492
|
</div>
|
@@ -500,12 +500,12 @@ to passing them in.
|
|
500
500
|
</div>
|
501
501
|
</div>
|
502
502
|
|
503
|
-
<div id="method-
|
504
|
-
<a name="
|
503
|
+
<div id="method-M000104" class="method-detail">
|
504
|
+
<a name="M000104"></a>
|
505
505
|
|
506
506
|
<div class="method-heading">
|
507
|
-
<a href="Configurator.src/
|
508
|
-
onclick="popupCode('Configurator.src/
|
507
|
+
<a href="Configurator.src/M000104.html" target="Code" class="method-signature"
|
508
|
+
onclick="popupCode('Configurator.src/M000104.html');return false;">
|
509
509
|
<span class="method-name">redirect</span><span class="method-args">(from, pattern, replacement = nil, &block)</span>
|
510
510
|
</a>
|
511
511
|
</div>
|
@@ -524,12 +524,12 @@ the configurator like this:
|
|
524
524
|
</div>
|
525
525
|
</div>
|
526
526
|
|
527
|
-
<div id="method-
|
528
|
-
<a name="
|
527
|
+
<div id="method-M000096" class="method-detail">
|
528
|
+
<a name="M000096"></a>
|
529
529
|
|
530
530
|
<div class="method-heading">
|
531
|
-
<a href="Configurator.src/
|
532
|
-
onclick="popupCode('Configurator.src/
|
531
|
+
<a href="Configurator.src/M000096.html" target="Code" class="method-signature"
|
532
|
+
onclick="popupCode('Configurator.src/M000096.html');return false;">
|
533
533
|
<span class="method-name">resolve_defaults</span><span class="method-args">(options)</span>
|
534
534
|
</a>
|
535
535
|
</div>
|
@@ -542,12 +542,12 @@ used internally.
|
|
542
542
|
</div>
|
543
543
|
</div>
|
544
544
|
|
545
|
-
<div id="method-
|
546
|
-
<a name="
|
545
|
+
<div id="method-M000105" class="method-detail">
|
546
|
+
<a name="M000105"></a>
|
547
547
|
|
548
548
|
<div class="method-heading">
|
549
|
-
<a href="Configurator.src/
|
550
|
-
onclick="popupCode('Configurator.src/
|
549
|
+
<a href="Configurator.src/M000105.html" target="Code" class="method-signature"
|
550
|
+
onclick="popupCode('Configurator.src/M000105.html');return false;">
|
551
551
|
<span class="method-name">run</span><span class="method-args">()</span>
|
552
552
|
</a>
|
553
553
|
</div>
|
@@ -556,18 +556,18 @@ used internally.
|
|
556
556
|
<p>
|
557
557
|
Works like a meta run method which goes through all the configured
|
558
558
|
listeners. Use the <a
|
559
|
-
href="Configurator.html#
|
559
|
+
href="Configurator.html#M000107">Configurator.join</a> method to prevent
|
560
560
|
Ruby from exiting until each one is done.
|
561
561
|
</p>
|
562
562
|
</div>
|
563
563
|
</div>
|
564
564
|
|
565
|
-
<div id="method-
|
566
|
-
<a name="
|
565
|
+
<div id="method-M000109" class="method-detail">
|
566
|
+
<a name="M000109"></a>
|
567
567
|
|
568
568
|
<div class="method-heading">
|
569
|
-
<a href="Configurator.src/
|
570
|
-
onclick="popupCode('Configurator.src/
|
569
|
+
<a href="Configurator.src/M000109.html" target="Code" class="method-signature"
|
570
|
+
onclick="popupCode('Configurator.src/M000109.html');return false;">
|
571
571
|
<span class="method-name">run_config</span><span class="method-args">(script)</span>
|
572
572
|
</a>
|
573
573
|
</div>
|
@@ -583,12 +583,12 @@ href="Configurator.html">Configurator</a> statements.
|
|
583
583
|
</div>
|
584
584
|
</div>
|
585
585
|
|
586
|
-
<div id="method-
|
587
|
-
<a name="
|
586
|
+
<div id="method-M000110" class="method-detail">
|
587
|
+
<a name="M000110"></a>
|
588
588
|
|
589
589
|
<div class="method-heading">
|
590
|
-
<a href="Configurator.src/
|
591
|
-
onclick="popupCode('Configurator.src/
|
590
|
+
<a href="Configurator.src/M000110.html" target="Code" class="method-signature"
|
591
|
+
onclick="popupCode('Configurator.src/M000110.html');return false;">
|
592
592
|
<span class="method-name">setup_signals</span><span class="method-args">(options={})</span>
|
593
593
|
</a>
|
594
594
|
</div>
|
@@ -601,7 +601,7 @@ since this is typically framework specific.
|
|
601
601
|
</p>
|
602
602
|
<p>
|
603
603
|
Requires a :pid_file option given to <a
|
604
|
-
href="Configurator.html#
|
604
|
+
href="Configurator.html#M000091">Configurator.new</a> to indicate a file to
|
605
605
|
delete. It sets the MongrelConfig.needs_restart attribute if the start
|
606
606
|
command should reload. It’s up to you to detect this and do whatever
|
607
607
|
is needed for a "restart".
|
@@ -612,13 +612,13 @@ This command is safely ignored if the platform is win32 (with a warning)
|
|
612
612
|
</div>
|
613
613
|
</div>
|
614
614
|
|
615
|
-
<div id="method-
|
616
|
-
<a name="
|
615
|
+
<div id="method-M000106" class="method-detail">
|
616
|
+
<a name="M000106"></a>
|
617
617
|
|
618
618
|
<div class="method-heading">
|
619
|
-
<a href="Configurator.src/
|
620
|
-
onclick="popupCode('Configurator.src/
|
621
|
-
<span class="method-name">stop</span><span class="method-args">(needs_restart=false
|
619
|
+
<a href="Configurator.src/M000106.html" target="Code" class="method-signature"
|
620
|
+
onclick="popupCode('Configurator.src/M000106.html');return false;">
|
621
|
+
<span class="method-name">stop</span><span class="method-args">(needs_restart=false)</span>
|
622
622
|
</a>
|
623
623
|
</div>
|
624
624
|
|
@@ -626,17 +626,17 @@ This command is safely ignored if the platform is win32 (with a warning)
|
|
626
626
|
<p>
|
627
627
|
Calls .stop on all the configured listeners so they stop processing
|
628
628
|
requests (gracefully). By default it assumes that you don’t want to
|
629
|
-
restart
|
629
|
+
restart.
|
630
630
|
</p>
|
631
631
|
</div>
|
632
632
|
</div>
|
633
633
|
|
634
|
-
<div id="method-
|
635
|
-
<a name="
|
634
|
+
<div id="method-M000098" class="method-detail">
|
635
|
+
<a name="M000098"></a>
|
636
636
|
|
637
637
|
<div class="method-heading">
|
638
|
-
<a href="Configurator.src/
|
639
|
-
onclick="popupCode('Configurator.src/
|
638
|
+
<a href="Configurator.src/M000098.html" target="Code" class="method-signature"
|
639
|
+
onclick="popupCode('Configurator.src/M000098.html');return false;">
|
640
640
|
<span class="method-name">uri</span><span class="method-args">(location, options={})</span>
|
641
641
|
</a>
|
642
642
|
</div>
|
@@ -644,7 +644,7 @@ restart and that the pid file should be unlinked on exit.
|
|
644
644
|
<div class="method-description">
|
645
645
|
<p>
|
646
646
|
Called inside a <a
|
647
|
-
href="Configurator.html#
|
647
|
+
href="Configurator.html#M000097">Configurator.listener</a> block in order
|
648
648
|
to add URI->handler mappings for that listener. Use this as many times
|
649
649
|
as you like. It expects the following options or defaults:
|
650
650
|
</p>
|
@@ -661,12 +661,12 @@ handler.
|
|
661
661
|
</div>
|
662
662
|
</div>
|
663
663
|
|
664
|
-
<div id="method-
|
665
|
-
<a name="
|
664
|
+
<div id="method-M000093" class="method-detail">
|
665
|
+
<a name="M000093"></a>
|
666
666
|
|
667
667
|
<div class="method-heading">
|
668
|
-
<a href="Configurator.src/
|
669
|
-
onclick="popupCode('Configurator.src/
|
668
|
+
<a href="Configurator.src/M000093.html" target="Code" class="method-signature"
|
669
|
+
onclick="popupCode('Configurator.src/M000093.html');return false;">
|
670
670
|
<span class="method-name">write_pid_file</span><span class="method-args">()</span>
|
671
671
|
</a>
|
672
672
|
</div>
|