mongrel_config 0.2.1 → 0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +3 -4
- data/doc/rdoc/classes/ConfigTool.html +174 -0
- data/doc/rdoc/classes/ConfigTool.src/M000001.html +33 -0
- data/doc/rdoc/classes/ConfigTool.src/M000002.html +28 -0
- data/doc/rdoc/classes/ConfigTool.src/M000003.html +45 -0
- data/doc/rdoc/classes/Configure/Controllers/ClearLogs.html +137 -0
- data/doc/rdoc/classes/Configure/Controllers/ClearLogs.src/M000043.html +21 -0
- data/doc/rdoc/classes/Configure/Controllers/Delete.html +137 -0
- data/doc/rdoc/classes/Configure/Controllers/Delete.src/M000036.html +20 -0
- data/doc/rdoc/classes/Configure/Controllers/Index.html +156 -0
- data/doc/rdoc/classes/Configure/Controllers/Index.src/M000027.html +18 -0
- data/doc/rdoc/classes/Configure/Controllers/Index.src/M000028.html +19 -0
- data/doc/rdoc/classes/Configure/Controllers/Info.html +137 -0
- data/doc/rdoc/classes/Configure/Controllers/Info.src/M000035.html +19 -0
- data/doc/rdoc/classes/Configure/Controllers/Install.html +182 -0
- data/doc/rdoc/classes/Configure/Controllers/Install.src/M000039.html +18 -0
- data/doc/rdoc/classes/Configure/Controllers/Install.src/M000040.html +43 -0
- data/doc/rdoc/classes/Configure/Controllers/Install.src/M000041.html +18 -0
- data/doc/rdoc/classes/Configure/Controllers/Install.src/M000042.html +18 -0
- data/doc/rdoc/classes/Configure/Controllers/Kill.html +137 -0
- data/doc/rdoc/classes/Configure/Controllers/Kill.src/M000029.html +32 -0
- data/doc/rdoc/classes/Configure/Controllers/Logs.html +162 -0
- data/doc/rdoc/classes/Configure/Controllers/Logs.src/M000037.html +19 -0
- data/doc/rdoc/classes/Configure/Controllers/Logs.src/M000038.html +18 -0
- data/doc/rdoc/classes/Configure/Controllers/Start.html +171 -0
- data/doc/rdoc/classes/Configure/Controllers/Start.src/M000032.html +18 -0
- data/doc/rdoc/classes/Configure/Controllers/Start.src/M000033.html +19 -0
- data/doc/rdoc/classes/Configure/Controllers/Start.src/M000034.html +27 -0
- data/doc/rdoc/classes/Configure/Controllers/Stop.html +156 -0
- data/doc/rdoc/classes/Configure/Controllers/Stop.src/M000030.html +18 -0
- data/doc/rdoc/classes/Configure/Controllers/Stop.src/M000031.html +26 -0
- data/doc/rdoc/classes/Configure/Controllers.html +123 -0
- data/doc/rdoc/classes/Configure/Views.html +360 -0
- data/doc/rdoc/classes/Configure/Views.src/M000011.html +24 -0
- data/doc/rdoc/classes/Configure/Views.src/M000012.html +25 -0
- data/doc/rdoc/classes/Configure/Views.src/M000013.html +26 -0
- data/doc/rdoc/classes/Configure/Views.src/M000014.html +20 -0
- data/doc/rdoc/classes/Configure/Views.src/M000015.html +31 -0
- data/doc/rdoc/classes/Configure/Views.src/M000016.html +27 -0
- data/doc/rdoc/classes/Configure/Views.src/M000017.html +32 -0
- data/doc/rdoc/classes/Configure/Views.src/M000018.html +18 -0
- data/doc/rdoc/classes/Configure/Views.src/M000019.html +18 -0
- data/doc/rdoc/classes/Configure/Views.src/M000020.html +29 -0
- data/doc/rdoc/classes/Configure/Views.src/M000021.html +42 -0
- data/doc/rdoc/classes/Configure/Views.src/M000022.html +34 -0
- data/doc/rdoc/classes/Configure/Views.src/M000023.html +25 -0
- data/doc/rdoc/classes/Configure/Views.src/M000024.html +35 -0
- data/doc/rdoc/classes/Configure/Views.src/M000025.html +23 -0
- data/doc/rdoc/classes/Configure/Views.src/M000026.html +20 -0
- data/doc/rdoc/classes/Configure.html +112 -0
- data/doc/rdoc/classes/W32Support.html +258 -0
- data/doc/rdoc/classes/W32Support.src/M000004.html +18 -0
- data/doc/rdoc/classes/W32Support.src/M000005.html +18 -0
- data/doc/rdoc/classes/W32Support.src/M000006.html +33 -0
- data/doc/rdoc/classes/W32Support.src/M000007.html +20 -0
- data/doc/rdoc/classes/W32Support.src/M000008.html +20 -0
- data/doc/rdoc/classes/W32Support.src/M000009.html +18 -0
- data/doc/rdoc/classes/W32Support.src/M000010.html +28 -0
- data/doc/rdoc/created.rid +1 -0
- data/doc/rdoc/files/COPYING.html +756 -0
- data/doc/rdoc/files/LICENSE.html +756 -0
- data/doc/rdoc/files/README.html +110 -0
- data/doc/rdoc/files/lib/mongrel_config/app_rb.html +110 -0
- data/doc/rdoc/files/lib/mongrel_config/init_rb.html +112 -0
- data/doc/rdoc/files/lib/mongrel_config/win32_app_rb.html +113 -0
- data/doc/rdoc/files/lib/mongrel_config/win32_rb.html +108 -0
- data/doc/rdoc/fr_class_index.html +40 -0
- data/doc/rdoc/fr_file_index.html +33 -0
- data/doc/rdoc/fr_method_index.html +69 -0
- data/doc/rdoc/index.html +24 -0
- data/doc/rdoc/rdoc-style.css +208 -0
- data/lib/mongrel_config/init.rb +32 -15
- data/lib/mongrel_config/win32.rb +85 -0
- data/lib/mongrel_config/win32_app.rb +251 -0
- data/resources/index_win32.html +68 -0
- data/resources/style.css +6 -1
- data/test/test_config.rb +48 -2
- data/tools/rakehelp.rb +2 -1
- metadata +95 -4
@@ -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>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/app.rb, line 65</span>
|
14
|
+
65: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">layout</span>
|
15
|
+
66: <span class="ruby-identifier">body_content</span> = <span class="ruby-keyword kw">yield</span>
|
16
|
+
67: <span class="ruby-identifier">currently_running</span> = <span class="ruby-identifier">_running?</span>
|
17
|
+
68: <span class="ruby-identifier">pid</span> = <span class="ruby-identifier">_pid</span>
|
18
|
+
69: <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.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>
|
19
|
+
70: <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>)
|
20
|
+
71: <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>)
|
21
|
+
72: <span class="ruby-keyword kw">end</span>
|
22
|
+
73: <span class="ruby-keyword kw">end</span></pre>
|
23
|
+
</body>
|
24
|
+
</html>
|
@@ -0,0 +1,25 @@
|
|
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>show (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 75</span>
|
14
|
+
75: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">show</span>
|
15
|
+
76: <span class="ruby-identifier">div</span> <span class="ruby-keyword kw">do</span>
|
16
|
+
77: <span class="ruby-identifier">h2</span> { <span class="ruby-value str">"Status"</span> }
|
17
|
+
78: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">_running?</span>
|
18
|
+
79: <span class="ruby-identifier">p</span> { <span class="ruby-node">"Currently running with PID #{_pid}."</span> }
|
19
|
+
80: <span class="ruby-keyword kw">else</span>
|
20
|
+
81: <span class="ruby-identifier">p</span> { <span class="ruby-value str">"Mongrel is not running."</span> }
|
21
|
+
82: <span class="ruby-keyword kw">end</span>
|
22
|
+
83: <span class="ruby-keyword kw">end</span>
|
23
|
+
84: <span class="ruby-keyword kw">end</span></pre>
|
24
|
+
</body>
|
25
|
+
</html>
|
@@ -0,0 +1,26 @@
|
|
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>
|
@@ -0,0 +1,20 @@
|
|
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>
|
@@ -0,0 +1,31 @@
|
|
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>
|
@@ -0,0 +1,27 @@
|
|
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>
|
@@ -0,0 +1,32 @@
|
|
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>
|
@@ -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>_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>
|
@@ -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>_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>
|
@@ -0,0 +1,29 @@
|
|
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>
|
@@ -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>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>
|
@@ -0,0 +1,34 @@
|
|
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>
|
@@ -0,0 +1,25 @@
|
|
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>
|
@@ -0,0 +1,35 @@
|
|
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>
|
@@ -0,0 +1,23 @@
|
|
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>
|
@@ -0,0 +1,20 @@
|
|
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>
|
@@ -0,0 +1,112 @@
|
|
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: Configure</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">Configure</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_app_rb.html">
|
59
|
+
lib/mongrel_config/win32_app.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
|
+
|
76
|
+
|
77
|
+
</div>
|
78
|
+
|
79
|
+
|
80
|
+
</div>
|
81
|
+
|
82
|
+
|
83
|
+
<!-- if includes -->
|
84
|
+
|
85
|
+
<div id="section">
|
86
|
+
|
87
|
+
<div id="class-list">
|
88
|
+
<h3 class="section-bar">Classes and Modules</h3>
|
89
|
+
|
90
|
+
Module <a href="Configure/Controllers.html" class="link">Configure::Controllers</a><br />
|
91
|
+
Module <a href="Configure/Views.html" class="link">Configure::Views</a><br />
|
92
|
+
|
93
|
+
</div>
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
<!-- if method_list -->
|
102
|
+
|
103
|
+
|
104
|
+
</div>
|
105
|
+
|
106
|
+
|
107
|
+
<div id="validator-badges">
|
108
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
109
|
+
</div>
|
110
|
+
|
111
|
+
</body>
|
112
|
+
</html>
|