mongrel 0.3.10.1 → 0.3.11
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +14 -2
- data/bin/mongrel_rails +7 -1
- data/bin/mongrel_rails_service +4 -4
- data/lib/mongrel.rb +5 -6
- data/tools/rakehelp.rb +4 -2
- metadata +3 -134
- data/doc/rdoc/classes/Mongrel.html +0 -175
- data/doc/rdoc/classes/Mongrel/CGIWrapper.html +0 -381
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000057.html +0 -24
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000058.html +0 -47
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000059.html +0 -34
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000060.html +0 -27
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000061.html +0 -25
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000062.html +0 -18
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000063.html +0 -18
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000064.html +0 -18
- data/doc/rdoc/classes/Mongrel/CGIWrapper.src/M000065.html +0 -19
- data/doc/rdoc/classes/Mongrel/Camping.html +0 -177
- data/doc/rdoc/classes/Mongrel/Camping.src/M000019.html +0 -22
- data/doc/rdoc/classes/Mongrel/Camping/CampingHandler.html +0 -165
- data/doc/rdoc/classes/Mongrel/Camping/CampingHandler.src/M000020.html +0 -18
- data/doc/rdoc/classes/Mongrel/Camping/CampingHandler.src/M000021.html +0 -27
- data/doc/rdoc/classes/Mongrel/Command.html +0 -119
- data/doc/rdoc/classes/Mongrel/Command/Base.html +0 -332
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000006.html +0 -24
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000007.html +0 -41
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000008.html +0 -18
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000009.html +0 -18
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000010.html +0 -18
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000011.html +0 -22
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000012.html +0 -18
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000013.html +0 -18
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000014.html +0 -18
- data/doc/rdoc/classes/Mongrel/Command/Base.src/M000015.html +0 -18
- data/doc/rdoc/classes/Mongrel/Command/Registry.html +0 -192
- data/doc/rdoc/classes/Mongrel/Command/Registry.src/M000016.html +0 -20
- data/doc/rdoc/classes/Mongrel/Command/Registry.src/M000017.html +0 -25
- data/doc/rdoc/classes/Mongrel/Command/Registry.src/M000018.html +0 -46
- data/doc/rdoc/classes/Mongrel/Const.html +0 -352
- data/doc/rdoc/classes/Mongrel/DirHandler.html +0 -283
- data/doc/rdoc/classes/Mongrel/DirHandler.src/M000029.html +0 -20
- data/doc/rdoc/classes/Mongrel/DirHandler.src/M000030.html +0 -42
- data/doc/rdoc/classes/Mongrel/DirHandler.src/M000031.html +0 -40
- data/doc/rdoc/classes/Mongrel/DirHandler.src/M000032.html +0 -31
- data/doc/rdoc/classes/Mongrel/DirHandler.src/M000033.html +0 -38
- data/doc/rdoc/classes/Mongrel/DirHandler.src/M000034.html +0 -18
- data/doc/rdoc/classes/Mongrel/Error404Handler.html +0 -171
- data/doc/rdoc/classes/Mongrel/Error404Handler.src/M000066.html +0 -18
- data/doc/rdoc/classes/Mongrel/Error404Handler.src/M000067.html +0 -18
- data/doc/rdoc/classes/Mongrel/HeaderOut.html +0 -185
- data/doc/rdoc/classes/Mongrel/HeaderOut.src/M000041.html +0 -18
- data/doc/rdoc/classes/Mongrel/HeaderOut.src/M000042.html +0 -21
- data/doc/rdoc/classes/Mongrel/HttpHandler.html +0 -146
- data/doc/rdoc/classes/Mongrel/HttpHandler.src/M000043.html +0 -17
- data/doc/rdoc/classes/Mongrel/HttpParser.html +0 -271
- data/doc/rdoc/classes/Mongrel/HttpParser.src/M000022.html +0 -28
- data/doc/rdoc/classes/Mongrel/HttpParser.src/M000023.html +0 -29
- data/doc/rdoc/classes/Mongrel/HttpParser.src/M000024.html +0 -29
- data/doc/rdoc/classes/Mongrel/HttpParser.src/M000025.html +0 -41
- data/doc/rdoc/classes/Mongrel/HttpParser.src/M000026.html +0 -27
- data/doc/rdoc/classes/Mongrel/HttpParser.src/M000027.html +0 -27
- data/doc/rdoc/classes/Mongrel/HttpParser.src/M000028.html +0 -28
- data/doc/rdoc/classes/Mongrel/HttpRequest.html +0 -177
- data/doc/rdoc/classes/Mongrel/HttpRequest.src/M000068.html +0 -39
- data/doc/rdoc/classes/Mongrel/HttpResponse.html +0 -321
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000044.html +0 -21
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000045.html +0 -20
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000046.html +0 -19
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000047.html +0 -19
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000048.html +0 -20
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000049.html +0 -20
- data/doc/rdoc/classes/Mongrel/HttpResponse.src/M000050.html +0 -20
- data/doc/rdoc/classes/Mongrel/HttpServer.html +0 -310
- data/doc/rdoc/classes/Mongrel/HttpServer.src/M000035.html +0 -36
- data/doc/rdoc/classes/Mongrel/HttpServer.src/M000036.html +0 -57
- data/doc/rdoc/classes/Mongrel/HttpServer.src/M000037.html +0 -48
- data/doc/rdoc/classes/Mongrel/HttpServer.src/M000038.html +0 -18
- data/doc/rdoc/classes/Mongrel/HttpServer.src/M000039.html +0 -18
- data/doc/rdoc/classes/Mongrel/HttpServer.src/M000040.html +0 -23
- data/doc/rdoc/classes/Mongrel/StopServer.html +0 -117
- data/doc/rdoc/classes/Mongrel/TimeoutWorker.html +0 -117
- data/doc/rdoc/classes/Mongrel/URIClassifier.html +0 -301
- data/doc/rdoc/classes/Mongrel/URIClassifier.src/M000051.html +0 -18
- data/doc/rdoc/classes/Mongrel/URIClassifier.src/M000052.html +0 -18
- data/doc/rdoc/classes/Mongrel/URIClassifier.src/M000053.html +0 -39
- data/doc/rdoc/classes/Mongrel/URIClassifier.src/M000054.html +0 -51
- data/doc/rdoc/classes/Mongrel/URIClassifier.src/M000055.html +0 -36
- data/doc/rdoc/classes/Mongrel/URIClassifier.src/M000056.html +0 -83
- data/doc/rdoc/classes/RailsHandler.html +0 -245
- data/doc/rdoc/classes/RailsHandler.src/M000003.html +0 -22
- data/doc/rdoc/classes/RailsHandler.src/M000004.html +0 -48
- data/doc/rdoc/classes/RailsHandler.src/M000005.html +0 -23
- data/doc/rdoc/classes/TCPServer.html +0 -173
- data/doc/rdoc/classes/TCPServer.src/M000001.html +0 -19
- data/doc/rdoc/created.rid +0 -1
- data/doc/rdoc/files/COPYING.html +0 -756
- data/doc/rdoc/files/LICENSE.html +0 -756
- data/doc/rdoc/files/README.html +0 -302
- data/doc/rdoc/files/ext/http11/http11_c.html +0 -101
- data/doc/rdoc/files/lib/mongrel/camping_rb.html +0 -108
- data/doc/rdoc/files/lib/mongrel/cgi_rb.html +0 -108
- data/doc/rdoc/files/lib/mongrel/command_rb.html +0 -111
- data/doc/rdoc/files/lib/mongrel/handlers_rb.html +0 -101
- data/doc/rdoc/files/lib/mongrel/init_rb.html +0 -109
- data/doc/rdoc/files/lib/mongrel/rails_rb.html +0 -109
- data/doc/rdoc/files/lib/mongrel/tcphack_rb.html +0 -109
- data/doc/rdoc/files/lib/mongrel_rb.html +0 -116
- data/doc/rdoc/fr_class_index.html +0 -47
- data/doc/rdoc/fr_file_index.html +0 -38
- data/doc/rdoc/fr_method_index.html +0 -94
- data/doc/rdoc/index.html +0 -24
- data/doc/rdoc/rdoc-style.css +0 -208
@@ -1,24 +0,0 @@
|
|
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 23</span>
|
14
|
-
23: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">options</span>(<span class="ruby-identifier">opts</span>)
|
15
|
-
24: <span class="ruby-comment cmt"># process the given options array</span>
|
16
|
-
25: <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
|
-
26: <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
|
-
27: <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
|
-
28: <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
|
-
29: <span class="ruby-keyword kw">end</span>
|
21
|
-
30: <span class="ruby-keyword kw">end</span>
|
22
|
-
31: <span class="ruby-keyword kw">end</span></pre>
|
23
|
-
</body>
|
24
|
-
</html>
|
@@ -1,41 +0,0 @@
|
|
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 35</span>
|
14
|
-
35: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">options</span>={})
|
15
|
-
36: <span class="ruby-identifier">argv</span> = <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:argv</span>] <span class="ruby-operator">||</span> []
|
16
|
-
37: <span class="ruby-ivar">@opt</span> = <span class="ruby-constant">OptionParser</span>.<span class="ruby-identifier">new</span>
|
17
|
-
38: <span class="ruby-ivar">@valid</span> = <span class="ruby-keyword kw">true</span>
|
18
|
-
39: <span class="ruby-comment cmt"># this is retarded, but it has to be done this way because -h and -v exit</span>
|
19
|
-
40: <span class="ruby-ivar">@done_validating</span> = <span class="ruby-keyword kw">false</span>
|
20
|
-
41: <span class="ruby-ivar">@original_args</span> = <span class="ruby-identifier">argv</span>.<span class="ruby-identifier">dup</span>
|
21
|
-
42:
|
22
|
-
43: <span class="ruby-identifier">configure</span>
|
23
|
-
44:
|
24
|
-
45: <span class="ruby-comment cmt"># I need to add my own -h definition to prevent the -h by default from exiting.</span>
|
25
|
-
46: <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>
|
26
|
-
47: <span class="ruby-ivar">@done_validating</span> = <span class="ruby-keyword kw">true</span>
|
27
|
-
48: <span class="ruby-identifier">puts</span> <span class="ruby-ivar">@opt</span>
|
28
|
-
49: <span class="ruby-keyword kw">end</span>
|
29
|
-
50:
|
30
|
-
51: <span class="ruby-comment cmt"># I need to add my own -v definition to prevent the -h from exiting by default as well.</span>
|
31
|
-
52: <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>
|
32
|
-
53: <span class="ruby-ivar">@done_validating</span> = <span class="ruby-keyword kw">true</span>
|
33
|
-
54: <span class="ruby-keyword kw">if</span> <span class="ruby-constant">VERSION</span>
|
34
|
-
55: <span class="ruby-identifier">puts</span> <span class="ruby-node">"Version #{VERSION}"</span>
|
35
|
-
56: <span class="ruby-keyword kw">end</span>
|
36
|
-
57: <span class="ruby-keyword kw">end</span>
|
37
|
-
58:
|
38
|
-
59: <span class="ruby-ivar">@opt</span>.<span class="ruby-identifier">parse!</span> <span class="ruby-identifier">argv</span>
|
39
|
-
60: <span class="ruby-keyword kw">end</span></pre>
|
40
|
-
</body>
|
41
|
-
</html>
|
@@ -1,18 +0,0 @@
|
|
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>validate (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 63</span>
|
14
|
-
63: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">validate</span>
|
15
|
-
64: <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@valid</span>
|
16
|
-
65: <span class="ruby-keyword kw">end</span></pre>
|
17
|
-
</body>
|
18
|
-
</html>
|
@@ -1,18 +0,0 @@
|
|
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>help (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 68</span>
|
14
|
-
68: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">help</span>
|
15
|
-
69: <span class="ruby-ivar">@opt</span>.<span class="ruby-identifier">help</span>
|
16
|
-
70: <span class="ruby-keyword kw">end</span></pre>
|
17
|
-
</body>
|
18
|
-
</html>
|
@@ -1,18 +0,0 @@
|
|
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::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 74</span>
|
14
|
-
74: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">run</span>
|
15
|
-
75: <span class="ruby-identifier">raise</span> <span class="ruby-constant">NotImplementedError</span>
|
16
|
-
76: <span class="ruby-keyword kw">end</span></pre>
|
17
|
-
</body>
|
18
|
-
</html>
|
@@ -1,22 +0,0 @@
|
|
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>valid? (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 80</span>
|
14
|
-
80: <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
|
-
81: <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
|
-
82: <span class="ruby-identifier">failure</span> <span class="ruby-identifier">message</span>
|
17
|
-
83: <span class="ruby-ivar">@valid</span> = <span class="ruby-keyword kw">false</span>
|
18
|
-
84: <span class="ruby-ivar">@done_validating</span> = <span class="ruby-keyword kw">true</span>
|
19
|
-
85: <span class="ruby-keyword kw">end</span>
|
20
|
-
86: <span class="ruby-keyword kw">end</span></pre>
|
21
|
-
</body>
|
22
|
-
</html>
|
@@ -1,18 +0,0 @@
|
|
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>valid_exists? (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 89</span>
|
14
|
-
89: <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
|
-
90: <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">&&</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
|
-
91: <span class="ruby-keyword kw">end</span></pre>
|
17
|
-
</body>
|
18
|
-
</html>
|
@@ -1,18 +0,0 @@
|
|
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>valid_file? (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 95</span>
|
14
|
-
95: <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
|
-
96: <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">&&</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
|
-
97: <span class="ruby-keyword kw">end</span></pre>
|
17
|
-
</body>
|
18
|
-
</html>
|
@@ -1,18 +0,0 @@
|
|
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>valid_dir? (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 100</span>
|
14
|
-
100: <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
|
-
101: <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">&&</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
|
-
102: <span class="ruby-keyword kw">end</span></pre>
|
17
|
-
</body>
|
18
|
-
</html>
|
@@ -1,18 +0,0 @@
|
|
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>failure (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 105</span>
|
14
|
-
105: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">failure</span>(<span class="ruby-identifier">message</span>)
|
15
|
-
106: <span class="ruby-constant">STDERR</span>.<span class="ruby-identifier">puts</span> <span class="ruby-node">"!!! #{message}"</span>
|
16
|
-
107: <span class="ruby-keyword kw">end</span></pre>
|
17
|
-
</body>
|
18
|
-
</html>
|
@@ -1,192 +0,0 @@
|
|
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 xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
-
<head>
|
8
|
-
<title>Class: Mongrel::Command::Registry</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
-
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
12
|
-
<script type="text/javascript">
|
13
|
-
// <![CDATA[
|
14
|
-
|
15
|
-
function popupCode( url ) {
|
16
|
-
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
-
}
|
18
|
-
|
19
|
-
function toggleCode( id ) {
|
20
|
-
if ( document.getElementById )
|
21
|
-
elem = document.getElementById( id );
|
22
|
-
else if ( document.all )
|
23
|
-
elem = eval( "document.all." + id );
|
24
|
-
else
|
25
|
-
return false;
|
26
|
-
|
27
|
-
elemStyle = elem.style;
|
28
|
-
|
29
|
-
if ( elemStyle.display != "block" ) {
|
30
|
-
elemStyle.display = "block"
|
31
|
-
} else {
|
32
|
-
elemStyle.display = "none"
|
33
|
-
}
|
34
|
-
|
35
|
-
return true;
|
36
|
-
}
|
37
|
-
|
38
|
-
// Make codeblocks hidden by default
|
39
|
-
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
-
|
41
|
-
// ]]>
|
42
|
-
</script>
|
43
|
-
|
44
|
-
</head>
|
45
|
-
<body>
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
<div id="classHeader">
|
50
|
-
<table class="header-table">
|
51
|
-
<tr class="top-aligned-row">
|
52
|
-
<td><strong>Class</strong></td>
|
53
|
-
<td class="class-name-in-header">Mongrel::Command::Registry</td>
|
54
|
-
</tr>
|
55
|
-
<tr class="top-aligned-row">
|
56
|
-
<td><strong>In:</strong></td>
|
57
|
-
<td>
|
58
|
-
<a href="../../../files/lib/mongrel/command_rb.html">
|
59
|
-
lib/mongrel/command.rb
|
60
|
-
</a>
|
61
|
-
<br />
|
62
|
-
</td>
|
63
|
-
</tr>
|
64
|
-
|
65
|
-
<tr class="top-aligned-row">
|
66
|
-
<td><strong>Parent:</strong></td>
|
67
|
-
<td>
|
68
|
-
Object
|
69
|
-
</td>
|
70
|
-
</tr>
|
71
|
-
</table>
|
72
|
-
</div>
|
73
|
-
<!-- banner header -->
|
74
|
-
|
75
|
-
<div id="bodyContent">
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
<div id="contextContent">
|
80
|
-
|
81
|
-
<div id="description">
|
82
|
-
<p>
|
83
|
-
A Singleton class that manages all of the available commands and handles
|
84
|
-
running them.
|
85
|
-
</p>
|
86
|
-
|
87
|
-
</div>
|
88
|
-
|
89
|
-
|
90
|
-
</div>
|
91
|
-
|
92
|
-
<div id="method-list">
|
93
|
-
<h3 class="section-bar">Methods</h3>
|
94
|
-
|
95
|
-
<div class="name-list">
|
96
|
-
<a href="#M000016">commands</a>
|
97
|
-
<a href="#M000017">print_command_list</a>
|
98
|
-
<a href="#M000018">run</a>
|
99
|
-
</div>
|
100
|
-
</div>
|
101
|
-
|
102
|
-
</div>
|
103
|
-
|
104
|
-
|
105
|
-
<!-- if includes -->
|
106
|
-
<div id="includes">
|
107
|
-
<h3 class="section-bar">Included Modules</h3>
|
108
|
-
|
109
|
-
<div id="includes-list">
|
110
|
-
<span class="include-name">Singleton</span>
|
111
|
-
</div>
|
112
|
-
</div>
|
113
|
-
|
114
|
-
<div id="section">
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
<!-- if method_list -->
|
124
|
-
<div id="methods">
|
125
|
-
<h3 class="section-bar">Public Instance methods</h3>
|
126
|
-
|
127
|
-
<div id="method-M000016" class="method-detail">
|
128
|
-
<a name="M000016"></a>
|
129
|
-
|
130
|
-
<div class="method-heading">
|
131
|
-
<a href="Registry.src/M000016.html" target="Code" class="method-signature"
|
132
|
-
onclick="popupCode('Registry.src/M000016.html');return false;">
|
133
|
-
<span class="method-name">commands</span><span class="method-args">()</span>
|
134
|
-
</a>
|
135
|
-
</div>
|
136
|
-
|
137
|
-
<div class="method-description">
|
138
|
-
<p>
|
139
|
-
Builds a list of possible commands from the <a
|
140
|
-
href="../Command.html">Command</a> derivates list
|
141
|
-
</p>
|
142
|
-
</div>
|
143
|
-
</div>
|
144
|
-
|
145
|
-
<div id="method-M000017" class="method-detail">
|
146
|
-
<a name="M000017"></a>
|
147
|
-
|
148
|
-
<div class="method-heading">
|
149
|
-
<a href="Registry.src/M000017.html" target="Code" class="method-signature"
|
150
|
-
onclick="popupCode('Registry.src/M000017.html');return false;">
|
151
|
-
<span class="method-name">print_command_list</span><span class="method-args">()</span>
|
152
|
-
</a>
|
153
|
-
</div>
|
154
|
-
|
155
|
-
<div class="method-description">
|
156
|
-
<p>
|
157
|
-
Prints a list of available commands.
|
158
|
-
</p>
|
159
|
-
</div>
|
160
|
-
</div>
|
161
|
-
|
162
|
-
<div id="method-M000018" class="method-detail">
|
163
|
-
<a name="M000018"></a>
|
164
|
-
|
165
|
-
<div class="method-heading">
|
166
|
-
<a href="Registry.src/M000018.html" target="Code" class="method-signature"
|
167
|
-
onclick="popupCode('Registry.src/M000018.html');return false;">
|
168
|
-
<span class="method-name">run</span><span class="method-args">(args)</span>
|
169
|
-
</a>
|
170
|
-
</div>
|
171
|
-
|
172
|
-
<div class="method-description">
|
173
|
-
<p>
|
174
|
-
Runs the args against the first argument as the command name. If it has any
|
175
|
-
errors it returns a false, otherwise it return true.
|
176
|
-
</p>
|
177
|
-
</div>
|
178
|
-
</div>
|
179
|
-
|
180
|
-
|
181
|
-
</div>
|
182
|
-
|
183
|
-
|
184
|
-
</div>
|
185
|
-
|
186
|
-
|
187
|
-
<div id="validator-badges">
|
188
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
189
|
-
</div>
|
190
|
-
|
191
|
-
</body>
|
192
|
-
</html>
|
@@ -1,20 +0,0 @@
|
|
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>commands (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 116</span>
|
14
|
-
116: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">commands</span>
|
15
|
-
117: <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
|
-
118: <span class="ruby-identifier">list</span> = <span class="ruby-identifier">pmgr</span>.<span class="ruby-identifier">plugins</span>[<span class="ruby-value str">"/commands"</span>].<span class="ruby-identifier">keys</span>
|
17
|
-
119: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">list</span>.<span class="ruby-identifier">sort</span>
|
18
|
-
120: <span class="ruby-keyword kw">end</span></pre>
|
19
|
-
</body>
|
20
|
-
</html>
|
@@ -1,25 +0,0 @@
|
|
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>print_command_list (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 123</span>
|
14
|
-
123: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">print_command_list</span>
|
15
|
-
124: <span class="ruby-identifier">puts</span> <span class="ruby-value str">"Available commands are:\n\n"</span>
|
16
|
-
125:
|
17
|
-
126: <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
|
-
127: <span class="ruby-identifier">puts</span> <span class="ruby-node">" - #{name[1 .. -1]}\n"</span>
|
19
|
-
128: <span class="ruby-keyword kw">end</span>
|
20
|
-
129:
|
21
|
-
130: <span class="ruby-identifier">puts</span> <span class="ruby-value str">"\nEach command takes -h as an option to get help."</span>
|
22
|
-
131:
|
23
|
-
132: <span class="ruby-keyword kw">end</span></pre>
|
24
|
-
</body>
|
25
|
-
</html>
|