mongrel_config 0.3 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data.tar.gz.sig +0 -0
- data/CHANGELOG +2 -0
- data/Manifest +21 -0
- data/lib/mongrel_config/app.rb +1 -2
- data/mongrel_config.gemspec +46 -0
- metadata +88 -126
- metadata.gz.sig +1 -0
- data/Rakefile +0 -39
- data/doc/rdoc/classes/ConfigTool.html +0 -174
- data/doc/rdoc/classes/ConfigTool.src/M000001.html +0 -33
- data/doc/rdoc/classes/ConfigTool.src/M000002.html +0 -28
- data/doc/rdoc/classes/ConfigTool.src/M000003.html +0 -45
- data/doc/rdoc/classes/Configure.html +0 -112
- data/doc/rdoc/classes/Configure/Controllers.html +0 -123
- data/doc/rdoc/classes/Configure/Controllers/ClearLogs.html +0 -137
- data/doc/rdoc/classes/Configure/Controllers/ClearLogs.src/M000043.html +0 -21
- data/doc/rdoc/classes/Configure/Controllers/Delete.html +0 -137
- data/doc/rdoc/classes/Configure/Controllers/Delete.src/M000036.html +0 -20
- data/doc/rdoc/classes/Configure/Controllers/Index.html +0 -156
- data/doc/rdoc/classes/Configure/Controllers/Index.src/M000027.html +0 -18
- data/doc/rdoc/classes/Configure/Controllers/Index.src/M000028.html +0 -19
- data/doc/rdoc/classes/Configure/Controllers/Info.html +0 -137
- data/doc/rdoc/classes/Configure/Controllers/Info.src/M000035.html +0 -19
- data/doc/rdoc/classes/Configure/Controllers/Install.html +0 -182
- data/doc/rdoc/classes/Configure/Controllers/Install.src/M000039.html +0 -18
- data/doc/rdoc/classes/Configure/Controllers/Install.src/M000040.html +0 -43
- data/doc/rdoc/classes/Configure/Controllers/Install.src/M000041.html +0 -18
- data/doc/rdoc/classes/Configure/Controllers/Install.src/M000042.html +0 -18
- data/doc/rdoc/classes/Configure/Controllers/Kill.html +0 -137
- data/doc/rdoc/classes/Configure/Controllers/Kill.src/M000029.html +0 -32
- data/doc/rdoc/classes/Configure/Controllers/Logs.html +0 -162
- data/doc/rdoc/classes/Configure/Controllers/Logs.src/M000037.html +0 -19
- data/doc/rdoc/classes/Configure/Controllers/Logs.src/M000038.html +0 -18
- data/doc/rdoc/classes/Configure/Controllers/Start.html +0 -171
- data/doc/rdoc/classes/Configure/Controllers/Start.src/M000032.html +0 -18
- data/doc/rdoc/classes/Configure/Controllers/Start.src/M000033.html +0 -19
- data/doc/rdoc/classes/Configure/Controllers/Start.src/M000034.html +0 -27
- data/doc/rdoc/classes/Configure/Controllers/Stop.html +0 -156
- data/doc/rdoc/classes/Configure/Controllers/Stop.src/M000030.html +0 -18
- data/doc/rdoc/classes/Configure/Controllers/Stop.src/M000031.html +0 -26
- data/doc/rdoc/classes/Configure/Views.html +0 -360
- data/doc/rdoc/classes/Configure/Views.src/M000011.html +0 -24
- data/doc/rdoc/classes/Configure/Views.src/M000012.html +0 -25
- data/doc/rdoc/classes/Configure/Views.src/M000013.html +0 -26
- data/doc/rdoc/classes/Configure/Views.src/M000014.html +0 -20
- data/doc/rdoc/classes/Configure/Views.src/M000015.html +0 -31
- data/doc/rdoc/classes/Configure/Views.src/M000016.html +0 -27
- data/doc/rdoc/classes/Configure/Views.src/M000017.html +0 -32
- data/doc/rdoc/classes/Configure/Views.src/M000018.html +0 -18
- data/doc/rdoc/classes/Configure/Views.src/M000019.html +0 -18
- data/doc/rdoc/classes/Configure/Views.src/M000020.html +0 -29
- data/doc/rdoc/classes/Configure/Views.src/M000021.html +0 -42
- data/doc/rdoc/classes/Configure/Views.src/M000022.html +0 -34
- data/doc/rdoc/classes/Configure/Views.src/M000023.html +0 -25
- data/doc/rdoc/classes/Configure/Views.src/M000024.html +0 -35
- data/doc/rdoc/classes/Configure/Views.src/M000025.html +0 -23
- data/doc/rdoc/classes/Configure/Views.src/M000026.html +0 -20
- data/doc/rdoc/classes/W32Support.html +0 -258
- data/doc/rdoc/classes/W32Support.src/M000004.html +0 -18
- data/doc/rdoc/classes/W32Support.src/M000005.html +0 -18
- data/doc/rdoc/classes/W32Support.src/M000006.html +0 -33
- data/doc/rdoc/classes/W32Support.src/M000007.html +0 -20
- data/doc/rdoc/classes/W32Support.src/M000008.html +0 -20
- data/doc/rdoc/classes/W32Support.src/M000009.html +0 -18
- data/doc/rdoc/classes/W32Support.src/M000010.html +0 -28
- 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 -110
- data/doc/rdoc/files/lib/mongrel_config/app_rb.html +0 -110
- data/doc/rdoc/files/lib/mongrel_config/init_rb.html +0 -112
- data/doc/rdoc/files/lib/mongrel_config/win32_app_rb.html +0 -113
- data/doc/rdoc/files/lib/mongrel_config/win32_rb.html +0 -108
- data/doc/rdoc/fr_class_index.html +0 -40
- data/doc/rdoc/fr_file_index.html +0 -33
- data/doc/rdoc/fr_method_index.html +0 -69
- data/doc/rdoc/index.html +0 -24
- data/doc/rdoc/rdoc-style.css +0 -208
- data/tools/rakehelp.rb +0 -106
@@ -1,26 +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>start (Configure::Views)</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_config/app.rb, line 86</span>
|
14
|
-
86: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">start</span>
|
15
|
-
87: <span class="ruby-identifier">div</span> <span class="ruby-keyword kw">do</span>
|
16
|
-
88: <span class="ruby-identifier">form</span> <span class="ruby-identifier">:action</span> =<span class="ruby-operator">></span> <span class="ruby-value str">"/start"</span>, <span class="ruby-identifier">:method</span> =<span class="ruby-operator">></span> <span class="ruby-value str">"POST"</span> <span class="ruby-keyword kw">do</span>
|
17
|
-
89: <span class="ruby-identifier">p</span> { <span class="ruby-identifier">span</span> { <span class="ruby-value str">"Port:"</span> }; <span class="ruby-identifier">input</span> <span class="ruby-identifier">:name</span> =<span class="ruby-operator">></span> <span class="ruby-value str">"port"</span>, <span class="ruby-identifier">:value</span> =<span class="ruby-operator">></span> <span class="ruby-value str">"4000"</span> }
|
18
|
-
90: <span class="ruby-identifier">p</span> { <span class="ruby-identifier">span</span> { <span class="ruby-value str">"Environment:"</span> }; <span class="ruby-identifier">input</span> <span class="ruby-identifier">:name</span> =<span class="ruby-operator">></span> <span class="ruby-value str">"env"</span>, <span class="ruby-identifier">:value</span> =<span class="ruby-operator">></span> <span class="ruby-value str">"development"</span> }
|
19
|
-
91: <span class="ruby-identifier">p</span> { <span class="ruby-identifier">span</span> { <span class="ruby-value str">"Address:"</span> }; <span class="ruby-identifier">input</span> <span class="ruby-identifier">:name</span> =<span class="ruby-operator">></span> <span class="ruby-value str">"address"</span>, <span class="ruby-identifier">:value</span> =<span class="ruby-operator">></span> <span class="ruby-value str">"0.0.0.0"</span> }
|
20
|
-
92: <span class="ruby-identifier">p</span> { <span class="ruby-identifier">span</span> { <span class="ruby-value str">"Number Processors:"</span> }; <span class="ruby-identifier">input</span> <span class="ruby-identifier">:name</span> =<span class="ruby-operator">></span> <span class="ruby-value str">"num_procs"</span>, <span class="ruby-identifier">:value</span> =<span class="ruby-operator">></span> <span class="ruby-value str">"20"</span> }
|
21
|
-
93: <span class="ruby-identifier">input</span> <span class="ruby-identifier">:type</span> =<span class="ruby-operator">></span> <span class="ruby-value str">"submit"</span>, <span class="ruby-identifier">:value</span> =<span class="ruby-operator">></span> <span class="ruby-value str">"START"</span>
|
22
|
-
94: <span class="ruby-keyword kw">end</span>
|
23
|
-
95: <span class="ruby-keyword kw">end</span>
|
24
|
-
96: <span class="ruby-keyword kw">end</span></pre>
|
25
|
-
</body>
|
26
|
-
</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>start_done (Configure::Views)</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_config/app.rb, line 98</span>
|
14
|
-
98: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">start_done</span>
|
15
|
-
99: <span class="ruby-identifier">div</span> <span class="ruby-keyword kw">do</span>
|
16
|
-
100: <span class="ruby-identifier">p</span> { <span class="ruby-ivar">@results</span> }
|
17
|
-
101: <span class="ruby-keyword kw">end</span>
|
18
|
-
102: <span class="ruby-keyword kw">end</span></pre>
|
19
|
-
</body>
|
20
|
-
</html>
|
@@ -1,31 +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>kill (Configure::Views)</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_config/app.rb, line 104</span>
|
14
|
-
104: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">kill</span>
|
15
|
-
105: <span class="ruby-identifier">div</span> <span class="ruby-keyword kw">do</span>
|
16
|
-
106: <span class="ruby-identifier">p</span> { <span class="ruby-ivar">@results</span> }
|
17
|
-
107:
|
18
|
-
108: <span class="ruby-keyword kw">case</span> <span class="ruby-ivar">@signal</span>
|
19
|
-
109: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">"HUP"</span><span class="ruby-operator">:</span>
|
20
|
-
110: <span class="ruby-identifier">p</span> { <span class="ruby-value str">"A reload (HUP) does not stop the process, but may not be complete."</span> }
|
21
|
-
111: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">"TERM"</span><span class="ruby-operator">:</span>
|
22
|
-
112: <span class="ruby-identifier">p</span> { <span class="ruby-value str">"Stopped with TERM signal. The process should exit shortly, but only after processing pending requests."</span> }
|
23
|
-
113: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">"USR2"</span><span class="ruby-operator">:</span>
|
24
|
-
114: <span class="ruby-identifier">p</span> { <span class="ruby-value str">"Complete restart (USR2) may take a little while. Check status in a few seconds or read logs."</span> }
|
25
|
-
115: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">"KILL"</span><span class="ruby-operator">:</span>
|
26
|
-
116: <span class="ruby-identifier">p</span> { <span class="ruby-value str">"Process was violently stopped (KILL) so pending requests will be lost."</span> }
|
27
|
-
117: <span class="ruby-keyword kw">end</span>
|
28
|
-
118: <span class="ruby-keyword kw">end</span>
|
29
|
-
119: <span class="ruby-keyword kw">end</span></pre>
|
30
|
-
</body>
|
31
|
-
</html>
|
@@ -1,27 +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>stop (Configure::Views)</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_config/app.rb, line 121</span>
|
14
|
-
121: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">stop</span>
|
15
|
-
122: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">_running?</span>
|
16
|
-
123: <span class="ruby-identifier">ul</span> <span class="ruby-keyword kw">do</span>
|
17
|
-
124: <span class="ruby-identifier">li</span> { <span class="ruby-identifier">a</span> <span class="ruby-value str">"Stop (TERM)"</span>, <span class="ruby-identifier">:href</span> =<span class="ruby-operator">></span> <span class="ruby-value str">"/kill/term"</span> }
|
18
|
-
125: <span class="ruby-identifier">li</span> { <span class="ruby-identifier">a</span> <span class="ruby-value str">"Reload (HUP)"</span>, <span class="ruby-identifier">:href</span> =<span class="ruby-operator">></span> <span class="ruby-value str">"/kill/hup"</span> }
|
19
|
-
126: <span class="ruby-identifier">li</span> { <span class="ruby-identifier">a</span> <span class="ruby-value str">"Restart (USR2)"</span>, <span class="ruby-identifier">:href</span> =<span class="ruby-operator">></span> <span class="ruby-value str">"/kill/usr2"</span> }
|
20
|
-
127: <span class="ruby-identifier">li</span> { <span class="ruby-identifier">a</span> <span class="ruby-value str">"Kill (KILL)"</span>, <span class="ruby-identifier">:href</span> =<span class="ruby-operator">></span> <span class="ruby-value str">"/kill/kill"</span> }
|
21
|
-
128: <span class="ruby-keyword kw">end</span>
|
22
|
-
129: <span class="ruby-keyword kw">else</span>
|
23
|
-
130: <span class="ruby-identifier">p</span> { <span class="ruby-value str">"Mongrel does not appear to be running (no PID file at #$PID_FILE)."</span> }
|
24
|
-
131: <span class="ruby-keyword kw">end</span>
|
25
|
-
132: <span class="ruby-keyword kw">end</span></pre>
|
26
|
-
</body>
|
27
|
-
</html>
|
@@ -1,32 +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>logs (Configure::Views)</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_config/app.rb, line 134</span>
|
14
|
-
134: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">logs</span>
|
15
|
-
135: <span class="ruby-identifier">div</span> <span class="ruby-keyword kw">do</span>
|
16
|
-
136: <span class="ruby-identifier">h2</span> { <span class="ruby-value str">"Logs"</span> }
|
17
|
-
137: <span class="ruby-identifier">table</span> <span class="ruby-keyword kw">do</span>
|
18
|
-
138: <span class="ruby-identifier">tr</span> <span class="ruby-keyword kw">do</span>
|
19
|
-
139: <span class="ruby-identifier">th</span> { <span class="ruby-value str">"File"</span>}; <span class="ruby-identifier">th</span> { <span class="ruby-value str">"Bytes"</span> }; <span class="ruby-identifier">th</span> { <span class="ruby-value str">"Last Modified"</span> }
|
20
|
-
140: <span class="ruby-keyword kw">end</span>
|
21
|
-
141: <span class="ruby-ivar">@log_files</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">file</span><span class="ruby-operator">|</span>
|
22
|
-
142: <span class="ruby-identifier">tr</span> <span class="ruby-keyword kw">do</span>
|
23
|
-
143: <span class="ruby-identifier">td</span> { <span class="ruby-identifier">a</span> <span class="ruby-identifier">file</span>, <span class="ruby-identifier">:href</span> =<span class="ruby-operator">></span> <span class="ruby-node">"../#{file}"</span> }
|
24
|
-
144: <span class="ruby-identifier">td</span> { <span class="ruby-constant">File</span>.<span class="ruby-identifier">size</span> <span class="ruby-identifier">file</span> }
|
25
|
-
145: <span class="ruby-identifier">td</span> { <span class="ruby-constant">File</span>.<span class="ruby-identifier">mtime</span> <span class="ruby-identifier">file</span> }
|
26
|
-
146: <span class="ruby-keyword kw">end</span>
|
27
|
-
147: <span class="ruby-keyword kw">end</span>
|
28
|
-
148: <span class="ruby-keyword kw">end</span>
|
29
|
-
149: <span class="ruby-keyword kw">end</span>
|
30
|
-
150: <span class="ruby-keyword kw">end</span></pre>
|
31
|
-
</body>
|
32
|
-
</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>_running? (Configure::Views)</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_config/app.rb, line 152</span>
|
14
|
-
152: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">_running?</span>
|
15
|
-
153: <span class="ruby-constant">File</span>.<span class="ruby-identifier">exist?</span> <span class="ruby-identifier">$PID_FILE</span>
|
16
|
-
154: <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>_pid (Configure::Views)</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_config/app.rb, line 156</span>
|
14
|
-
156: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">_pid</span>
|
15
|
-
157: <span class="ruby-identifier">open</span>(<span class="ruby-identifier">$PID_FILE</span>) {<span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span> <span class="ruby-identifier">f</span>.<span class="ruby-identifier">read</span> } <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">_running?</span>
|
16
|
-
158: <span class="ruby-keyword kw">end</span></pre>
|
17
|
-
</body>
|
18
|
-
</html>
|
@@ -1,29 +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>layout (Configure::Views)</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_config/win32_app.rb, line 130</span>
|
14
|
-
130: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">layout</span>
|
15
|
-
131: <span class="ruby-identifier">links</span> = [
|
16
|
-
132: [<span class="ruby-value str">"/config"</span>, <span class="ruby-value str">"Status"</span>],
|
17
|
-
133: [<span class="ruby-value str">"/config/install"</span>, <span class="ruby-value str">"Install"</span>],
|
18
|
-
134: [<span class="ruby-value str">"/config/logs"</span>, <span class="ruby-value str">"Logs"</span>]
|
19
|
-
135: ]
|
20
|
-
136: <span class="ruby-identifier">body_content</span> = <span class="ruby-keyword kw">yield</span>
|
21
|
-
137: <span class="ruby-identifier">currently_running</span> = <span class="ruby-identifier">_running_procs</span>
|
22
|
-
138:
|
23
|
-
139: <span class="ruby-identifier">open</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">resource</span>(<span class="ruby-value str">"mongrel_config"</span>, <span class="ruby-value str">"/index_win32.html"</span>)) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span>
|
24
|
-
140: <span class="ruby-identifier">template</span> = <span class="ruby-constant">ERB</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">f</span>.<span class="ruby-identifier">read</span>)
|
25
|
-
141: <span class="ruby-keyword kw">self</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">template</span>.<span class="ruby-identifier">result</span>(<span class="ruby-identifier">binding</span>)
|
26
|
-
142: <span class="ruby-keyword kw">end</span>
|
27
|
-
143: <span class="ruby-keyword kw">end</span></pre>
|
28
|
-
</body>
|
29
|
-
</html>
|
@@ -1,42 +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>list (Configure::Views)</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_config/win32_app.rb, line 146</span>
|
14
|
-
146: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">list</span>
|
15
|
-
147: <span class="ruby-identifier">div</span> <span class="ruby-identifier">:id=</span><span class="ruby-operator">></span><span class="ruby-value str">"viewport"</span> <span class="ruby-keyword kw">do</span>
|
16
|
-
148: <span class="ruby-identifier">table</span> <span class="ruby-keyword kw">do</span>
|
17
|
-
149: <span class="ruby-identifier">tr</span> { <span class="ruby-identifier">th</span> { <span class="ruby-value str">"Service"</span>}; <span class="ruby-identifier">th</span> { <span class="ruby-value str">"Status"</span>}; <span class="ruby-identifier">th</span> { <span class="ruby-value str">"Control"</span> }; <span class="ruby-identifier">th</span> { <span class="ruby-value str">"Delete"</span> } }
|
18
|
-
150: <span class="ruby-ivar">@services</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">s</span><span class="ruby-operator">|</span>
|
19
|
-
151: <span class="ruby-identifier">status</span> = <span class="ruby-constant">W32Support</span>.<span class="ruby-identifier">status</span>(<span class="ruby-identifier">s</span>.<span class="ruby-identifier">service_name</span>)
|
20
|
-
152: <span class="ruby-identifier">tr</span> {
|
21
|
-
153: <span class="ruby-identifier">td</span> { <span class="ruby-identifier">a</span>(<span class="ruby-identifier">s</span>.<span class="ruby-identifier">service_name</span>, <span class="ruby-identifier">:href</span> =<span class="ruby-operator">></span> <span class="ruby-node">"/info/#{s.service_name}"</span>) }
|
22
|
-
154: <span class="ruby-identifier">td</span> { <span class="ruby-identifier">status</span>.<span class="ruby-identifier">capitalize</span> }
|
23
|
-
155: <span class="ruby-identifier">td</span> {
|
24
|
-
156: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">status</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/stopped/</span>
|
25
|
-
157: <span class="ruby-identifier">a</span>(<span class="ruby-value str">"start"</span>,<span class="ruby-identifier">:href</span> =<span class="ruby-operator">></span> <span class="ruby-node">"/start/#{s.service_name}"</span>)
|
26
|
-
158: <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">status</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/running/</span>
|
27
|
-
159: <span class="ruby-identifier">a</span>(<span class="ruby-value str">"stop"</span>,<span class="ruby-identifier">:href</span> =<span class="ruby-operator">></span> <span class="ruby-node">"/stop/#{s.service_name}"</span>)
|
28
|
-
160: <span class="ruby-keyword kw">else</span>
|
29
|
-
161: <span class="ruby-identifier">b</span> { <span class="ruby-value str">"in progress"</span> }
|
30
|
-
162: <span class="ruby-keyword kw">end</span>
|
31
|
-
163: }
|
32
|
-
164: <span class="ruby-identifier">td</span> {
|
33
|
-
165: <span class="ruby-identifier">a</span>(<span class="ruby-value str">"delete!"</span>,<span class="ruby-identifier">:href</span> =<span class="ruby-operator">></span> <span class="ruby-node">"/delete/#{s.service_name}"</span>,
|
34
|
-
166: <span class="ruby-identifier">:onclick=</span><span class="ruby-operator">></span><span class="ruby-node">"return confirm('Delete #{s.service_name}?') == '1'"</span>)
|
35
|
-
167: }
|
36
|
-
168: }
|
37
|
-
169: <span class="ruby-keyword kw">end</span>
|
38
|
-
170: <span class="ruby-keyword kw">end</span>
|
39
|
-
171: <span class="ruby-keyword kw">end</span>
|
40
|
-
172: <span class="ruby-keyword kw">end</span></pre>
|
41
|
-
</body>
|
42
|
-
</html>
|
@@ -1,34 +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>info (Configure::Views)</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_config/win32_app.rb, line 175</span>
|
14
|
-
175: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">info</span>
|
15
|
-
176: <span class="ruby-identifier">div</span> <span class="ruby-identifier">:id=</span><span class="ruby-operator">></span><span class="ruby-value str">"viewport"</span> <span class="ruby-keyword kw">do</span>
|
16
|
-
177: <span class="ruby-ivar">@services</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">s</span><span class="ruby-operator">|</span>
|
17
|
-
178:
|
18
|
-
179: <span class="ruby-identifier">h2</span> { <span class="ruby-node">"#{s.service_name} service information"</span> }
|
19
|
-
180: <span class="ruby-identifier">table</span> <span class="ruby-keyword kw">do</span>
|
20
|
-
181: <span class="ruby-identifier">tr</span> { <span class="ruby-identifier">th</span> {<span class="ruby-value str">"Attribute"</span>}; <span class="ruby-identifier">th</span> {<span class="ruby-value str">"Value"</span>} }
|
21
|
-
182:
|
22
|
-
183: <span class="ruby-identifier">s</span>.<span class="ruby-identifier">each_pair</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">memb</span>,<span class="ruby-identifier">obj</span><span class="ruby-operator">|</span>
|
23
|
-
184: <span class="ruby-identifier">name</span> = <span class="ruby-identifier">memb</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">tr</span>(<span class="ruby-value str">"_"</span>,<span class="ruby-value str">" "</span>).<span class="ruby-identifier">capitalize</span>
|
24
|
-
185: <span class="ruby-identifier">tr</span> {
|
25
|
-
186: <span class="ruby-identifier">td</span> { <span class="ruby-identifier">b</span> { <span class="ruby-node">"#{name}: "</span> } }
|
26
|
-
187: <span class="ruby-identifier">td</span> { <span class="ruby-identifier">obj</span>.<span class="ruby-identifier">inspect</span> }
|
27
|
-
188: }
|
28
|
-
189: <span class="ruby-keyword kw">end</span>
|
29
|
-
190: <span class="ruby-keyword kw">end</span>
|
30
|
-
191: <span class="ruby-keyword kw">end</span>
|
31
|
-
192: <span class="ruby-keyword kw">end</span>
|
32
|
-
193: <span class="ruby-keyword kw">end</span></pre>
|
33
|
-
</body>
|
34
|
-
</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>service_logs (Configure::Views)</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_config/win32_app.rb, line 195</span>
|
14
|
-
195: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">service_logs</span>
|
15
|
-
196: <span class="ruby-identifier">h2</span> { <span class="ruby-value str">"Latest Service Activity Logs"</span> }
|
16
|
-
197: <span class="ruby-identifier">a</span>(<span class="ruby-value str">"[clear logs]"</span>, <span class="ruby-identifier">:href</span> =<span class="ruby-operator">></span> <span class="ruby-value str">"/clear_logs"</span>)
|
17
|
-
198:
|
18
|
-
199: <span class="ruby-identifier">div</span> <span class="ruby-identifier">:id=</span><span class="ruby-operator">></span><span class="ruby-value str">"viewport"</span> <span class="ruby-keyword kw">do</span>
|
19
|
-
200: <span class="ruby-identifier">pre</span> <span class="ruby-identifier">:style=</span><span class="ruby-operator">></span><span class="ruby-value str">"font-size: 10pt;"</span> <span class="ruby-keyword kw">do</span>
|
20
|
-
201: <span class="ruby-keyword kw">self</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">$service_logs</span>
|
21
|
-
202: <span class="ruby-keyword kw">end</span>
|
22
|
-
203: <span class="ruby-keyword kw">end</span>
|
23
|
-
204: <span class="ruby-keyword kw">end</span></pre>
|
24
|
-
</body>
|
25
|
-
</html>
|
@@ -1,35 +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>install_form (Configure::Views)</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_config/win32_app.rb, line 206</span>
|
14
|
-
206: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">install_form</span>
|
15
|
-
207: <span class="ruby-identifier">div</span> <span class="ruby-keyword kw">do</span>
|
16
|
-
208: <span class="ruby-identifier">h2</span> { <span class="ruby-value str">"Install New Mongrel Service"</span> }
|
17
|
-
209: <span class="ruby-identifier">p</span> { <span class="ruby-value str">"Items with an * are mandatory. Leave an item blank to not specify it."</span> }
|
18
|
-
210: <span class="ruby-identifier">form</span> <span class="ruby-identifier">:action=</span><span class="ruby-operator">></span><span class="ruby-value str">"/install"</span>, <span class="ruby-identifier">:method=</span><span class="ruby-operator">></span><span class="ruby-value str">"POST"</span> <span class="ruby-keyword kw">do</span>
|
19
|
-
211: <span class="ruby-identifier">b</span> { <span class="ruby-value str">"* Service Name: "</span>}; <span class="ruby-identifier">input</span> <span class="ruby-identifier">:name</span> =<span class="ruby-operator">></span> <span class="ruby-value str">"service_name"</span>; <span class="ruby-identifier">br</span>
|
20
|
-
212: <span class="ruby-identifier">b</span> { <span class="ruby-value str">"* Root: "</span>}; <span class="ruby-identifier">input</span> <span class="ruby-identifier">:name</span> =<span class="ruby-operator">></span> <span class="ruby-value str">"root"</span>; <span class="ruby-identifier">br</span>
|
21
|
-
213: <span class="ruby-identifier">b</span> { <span class="ruby-value str">"* Environment: "</span>}; <span class="ruby-identifier">input</span> <span class="ruby-identifier">:name</span> =<span class="ruby-operator">></span> <span class="ruby-value str">"environment"</span>, <span class="ruby-identifier">:value</span> =<span class="ruby-operator">></span> <span class="ruby-value str">"development"</span>; <span class="ruby-identifier">br</span>
|
22
|
-
214: <span class="ruby-identifier">b</span> { <span class="ruby-value str">"*Address: "</span>}; <span class="ruby-identifier">input</span> <span class="ruby-identifier">:name</span> =<span class="ruby-operator">></span> <span class="ruby-value str">"address"</span>, <span class="ruby-identifier">:value</span> =<span class="ruby-operator">></span> <span class="ruby-value str">"0.0.0.0"</span>; <span class="ruby-identifier">br</span>
|
23
|
-
215: <span class="ruby-identifier">b</span> { <span class="ruby-value str">"*Port: "</span>}; <span class="ruby-identifier">input</span> <span class="ruby-identifier">:name</span> =<span class="ruby-operator">></span> <span class="ruby-value str">"port"</span>, <span class="ruby-identifier">:value</span> =<span class="ruby-operator">></span> <span class="ruby-value str">"4000"</span>, <span class="ruby-identifier">:size</span> =<span class="ruby-operator">></span> <span class="ruby-value">6</span>; <span class="ruby-identifier">br</span>
|
24
|
-
216: <span class="ruby-identifier">b</span> { <span class="ruby-value str">"Display Name: "</span>}; <span class="ruby-identifier">input</span> <span class="ruby-identifier">:name</span> =<span class="ruby-operator">></span> <span class="ruby-value str">"display_name"</span>; <span class="ruby-identifier">br</span>
|
25
|
-
217: <span class="ruby-identifier">b</span> { <span class="ruby-value str">"MIME Map File: "</span>}; <span class="ruby-identifier">input</span> <span class="ruby-identifier">:name</span> =<span class="ruby-operator">></span> <span class="ruby-value str">"mime"</span>; <span class="ruby-identifier">br</span>
|
26
|
-
218: <span class="ruby-identifier">b</span> { <span class="ruby-value str">"Number Processor Threads: "</span>}; <span class="ruby-identifier">input</span> <span class="ruby-identifier">:name</span> =<span class="ruby-operator">></span> <span class="ruby-value str">"num_procs"</span>, <span class="ruby-identifier">:size</span> =<span class="ruby-operator">></span> <span class="ruby-value">3</span>; <span class="ruby-identifier">br</span>
|
27
|
-
219: <span class="ruby-identifier">b</span> { <span class="ruby-value str">"Request Timeout: "</span>}; <span class="ruby-identifier">input</span> <span class="ruby-identifier">:name</span> =<span class="ruby-operator">></span> <span class="ruby-value str">"timeout"</span>, <span class="ruby-identifier">:size</span> =<span class="ruby-operator">></span> <span class="ruby-value">3</span>; <span class="ruby-identifier">br</span>
|
28
|
-
220: <span class="ruby-identifier">b</span> { <span class="ruby-value str">"Assigned CPU: "</span> }; <span class="ruby-identifier">input</span> <span class="ruby-identifier">:name</span> =<span class="ruby-operator">></span> <span class="ruby-value str">"cpu"</span>, <span class="ruby-identifier">:size</span> =<span class="ruby-operator">></span> <span class="ruby-value">2</span>; <span class="ruby-identifier">br</span>
|
29
|
-
221:
|
30
|
-
222: <span class="ruby-identifier">p</span> { <span class="ruby-identifier">input</span> <span class="ruby-identifier">:type=</span><span class="ruby-operator">></span><span class="ruby-value str">"submit"</span>, <span class="ruby-identifier">:value</span> =<span class="ruby-operator">></span> <span class="ruby-value str">"INSTALL"</span> }
|
31
|
-
223: <span class="ruby-keyword kw">end</span>
|
32
|
-
224: <span class="ruby-keyword kw">end</span>
|
33
|
-
225: <span class="ruby-keyword kw">end</span></pre>
|
34
|
-
</body>
|
35
|
-
</html>
|
@@ -1,23 +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>install_result (Configure::Views)</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_config/win32_app.rb, line 228</span>
|
14
|
-
228: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">install_result</span>
|
15
|
-
229: <span class="ruby-identifier">div</span> <span class="ruby-identifier">:id=</span><span class="ruby-operator">></span><span class="ruby-value str">"viewport"</span> <span class="ruby-keyword kw">do</span>
|
16
|
-
230: <span class="ruby-identifier">h2</span> { <span class="ruby-value str">"Install Results"</span>}
|
17
|
-
231: <span class="ruby-identifier">pre</span> <span class="ruby-keyword kw">do</span>
|
18
|
-
232: <span class="ruby-keyword kw">self</span> <span class="ruby-operator"><<</span> <span class="ruby-ivar">@result</span>
|
19
|
-
233: <span class="ruby-keyword kw">end</span>
|
20
|
-
234: <span class="ruby-keyword kw">end</span>
|
21
|
-
235: <span class="ruby-keyword kw">end</span></pre>
|
22
|
-
</body>
|
23
|
-
</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>_running_procs (Configure::Views)</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_config/win32_app.rb, line 237</span>
|
14
|
-
237: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">_running_procs</span>
|
15
|
-
238: <span class="ruby-identifier">running</span> = []
|
16
|
-
239: <span class="ruby-constant">W32Support</span>.<span class="ruby-identifier">list</span>.<span class="ruby-identifier">each</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">s</span><span class="ruby-operator">|</span> <span class="ruby-identifier">running</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">s</span>.<span class="ruby-identifier">service_name</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">s</span>.<span class="ruby-identifier">current_state</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/running/</span>}
|
17
|
-
240: <span class="ruby-identifier">running</span>
|
18
|
-
241: <span class="ruby-keyword kw">end</span></pre>
|
19
|
-
</body>
|
20
|
-
</html>
|
@@ -1,258 +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>Module: W32Support</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>Module</strong></td>
|
53
|
-
<td class="class-name-in-header">W32Support</td>
|
54
|
-
</tr>
|
55
|
-
<tr class="top-aligned-row">
|
56
|
-
<td><strong>In:</strong></td>
|
57
|
-
<td>
|
58
|
-
<a href="../files/lib/mongrel_config/win32_rb.html">
|
59
|
-
lib/mongrel_config/win32.rb
|
60
|
-
</a>
|
61
|
-
<br />
|
62
|
-
</td>
|
63
|
-
</tr>
|
64
|
-
|
65
|
-
</table>
|
66
|
-
</div>
|
67
|
-
<!-- banner header -->
|
68
|
-
|
69
|
-
<div id="bodyContent">
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
<div id="contextContent">
|
74
|
-
|
75
|
-
<div id="description">
|
76
|
-
<p>
|
77
|
-
Simply abstracts the common stuff that the config tool needs to do when
|
78
|
-
dealing with Win32. It is a very thin wrapper which may expand later.
|
79
|
-
</p>
|
80
|
-
|
81
|
-
</div>
|
82
|
-
|
83
|
-
|
84
|
-
</div>
|
85
|
-
|
86
|
-
<div id="method-list">
|
87
|
-
<h3 class="section-bar">Methods</h3>
|
88
|
-
|
89
|
-
<div class="name-list">
|
90
|
-
<a href="#M000010">delete</a>
|
91
|
-
<a href="#M000005">display</a>
|
92
|
-
<a href="#M000006">do_and_wait</a>
|
93
|
-
<a href="#M000004">list</a>
|
94
|
-
<a href="#M000007">start</a>
|
95
|
-
<a href="#M000009">status</a>
|
96
|
-
<a href="#M000008">stop</a>
|
97
|
-
</div>
|
98
|
-
</div>
|
99
|
-
|
100
|
-
</div>
|
101
|
-
|
102
|
-
|
103
|
-
<!-- if includes -->
|
104
|
-
|
105
|
-
<div id="section">
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
<!-- if method_list -->
|
115
|
-
<div id="methods">
|
116
|
-
<h3 class="section-bar">Public Class methods</h3>
|
117
|
-
|
118
|
-
<div id="method-M000010" class="method-detail">
|
119
|
-
<a name="M000010"></a>
|
120
|
-
|
121
|
-
<div class="method-heading">
|
122
|
-
<a href="W32Support.src/M000010.html" target="Code" class="method-signature"
|
123
|
-
onclick="popupCode('W32Support.src/M000010.html');return false;">
|
124
|
-
<span class="method-name">delete</span><span class="method-args">(service_name) {|status if block_given?| ...}</span>
|
125
|
-
</a>
|
126
|
-
</div>
|
127
|
-
|
128
|
-
<div class="method-description">
|
129
|
-
<p>
|
130
|
-
Deletes the service from the system. It first tries to stop the service,
|
131
|
-
and if you pass in a block it will call it while the service is being
|
132
|
-
stopped.
|
133
|
-
</p>
|
134
|
-
</div>
|
135
|
-
</div>
|
136
|
-
|
137
|
-
<div id="method-M000005" class="method-detail">
|
138
|
-
<a name="M000005"></a>
|
139
|
-
|
140
|
-
<div class="method-heading">
|
141
|
-
<a href="W32Support.src/M000005.html" target="Code" class="method-signature"
|
142
|
-
onclick="popupCode('W32Support.src/M000005.html');return false;">
|
143
|
-
<span class="method-name">display</span><span class="method-args">(name)</span>
|
144
|
-
</a>
|
145
|
-
</div>
|
146
|
-
|
147
|
-
<div class="method-description">
|
148
|
-
<p>
|
149
|
-
Just gets the display name of the service.
|
150
|
-
</p>
|
151
|
-
</div>
|
152
|
-
</div>
|
153
|
-
|
154
|
-
<div id="method-M000006" class="method-detail">
|
155
|
-
<a name="M000006"></a>
|
156
|
-
|
157
|
-
<div class="method-heading">
|
158
|
-
<a href="W32Support.src/M000006.html" target="Code" class="method-signature"
|
159
|
-
onclick="popupCode('W32Support.src/M000006.html');return false;">
|
160
|
-
<span class="method-name">do_and_wait</span><span class="method-args">(service_name, operation, wait_for) {|status| ...}</span>
|
161
|
-
</a>
|
162
|
-
</div>
|
163
|
-
|
164
|
-
<div class="method-description">
|
165
|
-
<p>
|
166
|
-
Performs one operations (like :start or :start) which need to be
|
167
|
-
"monitored" until they’re done. The wait_for parameter
|
168
|
-
should be a regex for the content of the status like /running/ or /stopped/
|
169
|
-
</p>
|
170
|
-
</div>
|
171
|
-
</div>
|
172
|
-
|
173
|
-
<div id="method-M000004" class="method-detail">
|
174
|
-
<a name="M000004"></a>
|
175
|
-
|
176
|
-
<div class="method-heading">
|
177
|
-
<a href="W32Support.src/M000004.html" target="Code" class="method-signature"
|
178
|
-
onclick="popupCode('W32Support.src/M000004.html');return false;">
|
179
|
-
<span class="method-name">list</span><span class="method-args">()</span>
|
180
|
-
</a>
|
181
|
-
</div>
|
182
|
-
|
183
|
-
<div class="method-description">
|
184
|
-
<p>
|
185
|
-
Lists all of the services that have "mongrel" in the
|
186
|
-
binary_path_name of the service. This detects the mongrel services.
|
187
|
-
</p>
|
188
|
-
</div>
|
189
|
-
</div>
|
190
|
-
|
191
|
-
<div id="method-M000007" class="method-detail">
|
192
|
-
<a name="M000007"></a>
|
193
|
-
|
194
|
-
<div class="method-heading">
|
195
|
-
<a href="W32Support.src/M000007.html" target="Code" class="method-signature"
|
196
|
-
onclick="popupCode('W32Support.src/M000007.html');return false;">
|
197
|
-
<span class="method-name">start</span><span class="method-args">(service_name) {|status| ...}</span>
|
198
|
-
</a>
|
199
|
-
</div>
|
200
|
-
|
201
|
-
<div class="method-description">
|
202
|
-
<p>
|
203
|
-
Starts the requested service and calls a passed in block until the service
|
204
|
-
is done. You should sleep for a short period until it’s done or
|
205
|
-
there’s an exception.
|
206
|
-
</p>
|
207
|
-
</div>
|
208
|
-
</div>
|
209
|
-
|
210
|
-
<div id="method-M000009" class="method-detail">
|
211
|
-
<a name="M000009"></a>
|
212
|
-
|
213
|
-
<div class="method-heading">
|
214
|
-
<a href="W32Support.src/M000009.html" target="Code" class="method-signature"
|
215
|
-
onclick="popupCode('W32Support.src/M000009.html');return false;">
|
216
|
-
<span class="method-name">status</span><span class="method-args">(service_name)</span>
|
217
|
-
</a>
|
218
|
-
</div>
|
219
|
-
|
220
|
-
<div class="method-description">
|
221
|
-
<p>
|
222
|
-
Returns the current_state field of the service.
|
223
|
-
</p>
|
224
|
-
</div>
|
225
|
-
</div>
|
226
|
-
|
227
|
-
<div id="method-M000008" class="method-detail">
|
228
|
-
<a name="M000008"></a>
|
229
|
-
|
230
|
-
<div class="method-heading">
|
231
|
-
<a href="W32Support.src/M000008.html" target="Code" class="method-signature"
|
232
|
-
onclick="popupCode('W32Support.src/M000008.html');return false;">
|
233
|
-
<span class="method-name">stop</span><span class="method-args">(service_name) {|status| ...}</span>
|
234
|
-
</a>
|
235
|
-
</div>
|
236
|
-
|
237
|
-
<div class="method-description">
|
238
|
-
<p>
|
239
|
-
Stops the service. Just like <a
|
240
|
-
href="W32Support.html#M000007">W32Support.start</a> is will call a block
|
241
|
-
while it checks for the service to actually stop.
|
242
|
-
</p>
|
243
|
-
</div>
|
244
|
-
</div>
|
245
|
-
|
246
|
-
|
247
|
-
</div>
|
248
|
-
|
249
|
-
|
250
|
-
</div>
|
251
|
-
|
252
|
-
|
253
|
-
<div id="validator-badges">
|
254
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
255
|
-
</div>
|
256
|
-
|
257
|
-
</body>
|
258
|
-
</html>
|