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,19 +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>get (Configure::Controllers::Info)</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 24</span>
|
14
|
-
24: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get</span>(<span class="ruby-identifier">name</span>)
|
15
|
-
25: <span class="ruby-ivar">@services</span> = <span class="ruby-constant">W32Support</span>.<span class="ruby-identifier">list</span>.<span class="ruby-identifier">select</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">s</span><span class="ruby-operator">|</span> <span class="ruby-identifier">s</span>.<span class="ruby-identifier">service_name</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">name</span> }
|
16
|
-
26: <span class="ruby-identifier">render</span> <span class="ruby-identifier">:info</span>
|
17
|
-
27: <span class="ruby-keyword kw">end</span></pre>
|
18
|
-
</body>
|
19
|
-
</html>
|
@@ -1,182 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
-
<head>
|
8
|
-
<title>Class: Configure::Controllers::Install</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
-
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
12
|
-
<script type="text/javascript">
|
13
|
-
// <![CDATA[
|
14
|
-
|
15
|
-
function popupCode( url ) {
|
16
|
-
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
-
}
|
18
|
-
|
19
|
-
function toggleCode( id ) {
|
20
|
-
if ( document.getElementById )
|
21
|
-
elem = document.getElementById( id );
|
22
|
-
else if ( document.all )
|
23
|
-
elem = eval( "document.all." + id );
|
24
|
-
else
|
25
|
-
return false;
|
26
|
-
|
27
|
-
elemStyle = elem.style;
|
28
|
-
|
29
|
-
if ( elemStyle.display != "block" ) {
|
30
|
-
elemStyle.display = "block"
|
31
|
-
} else {
|
32
|
-
elemStyle.display = "none"
|
33
|
-
}
|
34
|
-
|
35
|
-
return true;
|
36
|
-
}
|
37
|
-
|
38
|
-
// Make codeblocks hidden by default
|
39
|
-
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
-
|
41
|
-
// ]]>
|
42
|
-
</script>
|
43
|
-
|
44
|
-
</head>
|
45
|
-
<body>
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
<div id="classHeader">
|
50
|
-
<table class="header-table">
|
51
|
-
<tr class="top-aligned-row">
|
52
|
-
<td><strong>Class</strong></td>
|
53
|
-
<td class="class-name-in-header">Configure::Controllers::Install</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
|
-
<tr class="top-aligned-row">
|
66
|
-
<td><strong>Parent:</strong></td>
|
67
|
-
<td>
|
68
|
-
R'/install'
|
69
|
-
</td>
|
70
|
-
</tr>
|
71
|
-
</table>
|
72
|
-
</div>
|
73
|
-
<!-- banner header -->
|
74
|
-
|
75
|
-
<div id="bodyContent">
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
<div id="contextContent">
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
</div>
|
84
|
-
|
85
|
-
<div id="method-list">
|
86
|
-
<h3 class="section-bar">Methods</h3>
|
87
|
-
|
88
|
-
<div class="name-list">
|
89
|
-
<a href="#M000042">bad?</a>
|
90
|
-
<a href="#M000039">get</a>
|
91
|
-
<a href="#M000041">good?</a>
|
92
|
-
<a href="#M000040">post</a>
|
93
|
-
</div>
|
94
|
-
</div>
|
95
|
-
|
96
|
-
</div>
|
97
|
-
|
98
|
-
|
99
|
-
<!-- if includes -->
|
100
|
-
|
101
|
-
<div id="section">
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
<!-- if method_list -->
|
111
|
-
<div id="methods">
|
112
|
-
<h3 class="section-bar">Public Instance methods</h3>
|
113
|
-
|
114
|
-
<div id="method-M000042" class="method-detail">
|
115
|
-
<a name="M000042"></a>
|
116
|
-
|
117
|
-
<div class="method-heading">
|
118
|
-
<a href="Install.src/M000042.html" target="Code" class="method-signature"
|
119
|
-
onclick="popupCode('Install.src/M000042.html');return false;">
|
120
|
-
<span class="method-name">bad?</span><span class="method-args">(field)</span>
|
121
|
-
</a>
|
122
|
-
</div>
|
123
|
-
|
124
|
-
<div class="method-description">
|
125
|
-
</div>
|
126
|
-
</div>
|
127
|
-
|
128
|
-
<div id="method-M000039" class="method-detail">
|
129
|
-
<a name="M000039"></a>
|
130
|
-
|
131
|
-
<div class="method-heading">
|
132
|
-
<a href="Install.src/M000039.html" target="Code" class="method-signature"
|
133
|
-
onclick="popupCode('Install.src/M000039.html');return false;">
|
134
|
-
<span class="method-name">get</span><span class="method-args">()</span>
|
135
|
-
</a>
|
136
|
-
</div>
|
137
|
-
|
138
|
-
<div class="method-description">
|
139
|
-
</div>
|
140
|
-
</div>
|
141
|
-
|
142
|
-
<div id="method-M000041" class="method-detail">
|
143
|
-
<a name="M000041"></a>
|
144
|
-
|
145
|
-
<div class="method-heading">
|
146
|
-
<a href="Install.src/M000041.html" target="Code" class="method-signature"
|
147
|
-
onclick="popupCode('Install.src/M000041.html');return false;">
|
148
|
-
<span class="method-name">good?</span><span class="method-args">(field)</span>
|
149
|
-
</a>
|
150
|
-
</div>
|
151
|
-
|
152
|
-
<div class="method-description">
|
153
|
-
</div>
|
154
|
-
</div>
|
155
|
-
|
156
|
-
<div id="method-M000040" class="method-detail">
|
157
|
-
<a name="M000040"></a>
|
158
|
-
|
159
|
-
<div class="method-heading">
|
160
|
-
<a href="Install.src/M000040.html" target="Code" class="method-signature"
|
161
|
-
onclick="popupCode('Install.src/M000040.html');return false;">
|
162
|
-
<span class="method-name">post</span><span class="method-args">()</span>
|
163
|
-
</a>
|
164
|
-
</div>
|
165
|
-
|
166
|
-
<div class="method-description">
|
167
|
-
</div>
|
168
|
-
</div>
|
169
|
-
|
170
|
-
|
171
|
-
</div>
|
172
|
-
|
173
|
-
|
174
|
-
</div>
|
175
|
-
|
176
|
-
|
177
|
-
<div id="validator-badges">
|
178
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
179
|
-
</div>
|
180
|
-
|
181
|
-
</body>
|
182
|
-
</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>get (Configure::Controllers::Install)</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 76</span>
|
14
|
-
76: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get</span>
|
15
|
-
77: <span class="ruby-identifier">render</span> <span class="ruby-identifier">:install_form</span>
|
16
|
-
78: <span class="ruby-keyword kw">end</span></pre>
|
17
|
-
</body>
|
18
|
-
</html>
|
@@ -1,43 +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>post (Configure::Controllers::Install)</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 80</span>
|
14
|
-
80: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">post</span>
|
15
|
-
81: <span class="ruby-identifier">options</span> = []
|
16
|
-
82: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">bad?</span>(<span class="ruby-identifier">input</span>.<span class="ruby-identifier">service_name</span>) <span class="ruby-keyword kw">or</span> <span class="ruby-identifier">bad?</span>(<span class="ruby-identifier">input</span>.<span class="ruby-identifier">root</span>) <span class="ruby-keyword kw">or</span> <span class="ruby-identifier">bad?</span>(<span class="ruby-identifier">input</span>.<span class="ruby-identifier">environment</span>) <span class="ruby-keyword kw">or</span> <span class="ruby-identifier">bad?</span>(<span class="ruby-identifier">input</span>.<span class="ruby-identifier">address</span>) <span class="ruby-keyword kw">or</span> <span class="ruby-identifier">bad?</span>(<span class="ruby-identifier">input</span>.<span class="ruby-identifier">port</span>)
|
17
|
-
83: <span class="ruby-ivar">@result</span> = <span class="ruby-value str">"ERROR: You must fill out all mandatory (*) fields."</span>
|
18
|
-
84: <span class="ruby-identifier">render</span> <span class="ruby-identifier">:install_result</span>
|
19
|
-
85: <span class="ruby-keyword kw">else</span>
|
20
|
-
86: <span class="ruby-identifier">options</span> <span class="ruby-operator"><<</span> [<span class="ruby-value str">"-n"</span>, <span class="ruby-identifier">input</span>.<span class="ruby-identifier">service_name</span>]
|
21
|
-
87: <span class="ruby-identifier">options</span> <span class="ruby-operator"><<</span> [<span class="ruby-value str">"-r"</span>, <span class="ruby-value str">'"'</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">input</span>.<span class="ruby-identifier">root</span> <span class="ruby-operator">+</span> <span class="ruby-value str">'"'</span>]
|
22
|
-
88: <span class="ruby-identifier">options</span> <span class="ruby-operator"><<</span> [<span class="ruby-value str">"-e"</span>, <span class="ruby-identifier">input</span>.<span class="ruby-identifier">environment</span>]
|
23
|
-
89: <span class="ruby-identifier">options</span> <span class="ruby-operator"><<</span> [<span class="ruby-value str">"-b"</span>, <span class="ruby-identifier">input</span>.<span class="ruby-identifier">address</span>]
|
24
|
-
90: <span class="ruby-identifier">options</span> <span class="ruby-operator"><<</span> [<span class="ruby-value str">"-p"</span>, <span class="ruby-identifier">input</span>.<span class="ruby-identifier">port</span>]
|
25
|
-
91: <span class="ruby-identifier">options</span> <span class="ruby-operator"><<</span> [<span class="ruby-value str">"-d"</span>, <span class="ruby-identifier">input</span>.<span class="ruby-identifier">display_name</span>] <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">good?</span> <span class="ruby-identifier">input</span>.<span class="ruby-identifier">display_name</span>
|
26
|
-
92: <span class="ruby-identifier">options</span> <span class="ruby-operator"><<</span> [<span class="ruby-value str">"-m"</span>, <span class="ruby-value str">'"'</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">input</span>.<span class="ruby-identifier">mime</span> <span class="ruby-operator">+</span> <span class="ruby-value str">'"'</span>] <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">good?</span> <span class="ruby-identifier">input</span>.<span class="ruby-identifier">mime</span>
|
27
|
-
93: <span class="ruby-identifier">options</span> <span class="ruby-operator"><<</span> [<span class="ruby-value str">"-P"</span>, <span class="ruby-identifier">input</span>.<span class="ruby-identifier">num_procs</span>] <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">good?</span> <span class="ruby-identifier">input</span>.<span class="ruby-identifier">num_procs</span>
|
28
|
-
94: <span class="ruby-identifier">options</span> <span class="ruby-operator"><<</span> [<span class="ruby-value str">"-t"</span>, <span class="ruby-identifier">input</span>.<span class="ruby-identifier">timeout</span>] <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">good?</span> <span class="ruby-identifier">input</span>.<span class="ruby-identifier">timeout</span>
|
29
|
-
95: <span class="ruby-identifier">options</span> <span class="ruby-operator"><<</span> [<span class="ruby-value str">"-c"</span>, <span class="ruby-identifier">input</span>.<span class="ruby-identifier">cpu</span>] <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">good?</span> <span class="ruby-identifier">input</span>.<span class="ruby-identifier">cpu</span>
|
30
|
-
96:
|
31
|
-
97: <span class="ruby-keyword kw">begin</span>
|
32
|
-
98: <span class="ruby-ivar">@result</span> = <span class="ruby-node">`ruby #$mongrel_rails_service install #{options.join(' ')}`</span>
|
33
|
-
99: <span class="ruby-identifier">$service_logs</span> <span class="ruby-operator"><<</span> <span class="ruby-ivar">@result</span>
|
34
|
-
100: <span class="ruby-keyword kw">rescue</span>
|
35
|
-
101: <span class="ruby-ivar">@result</span> = <span class="ruby-node">"Failed to start #{input.service_name}: #$!"</span>
|
36
|
-
102: <span class="ruby-identifier">$service_logs</span> <span class="ruby-operator"><<</span> <span class="ruby-ivar">@result</span>
|
37
|
-
103: <span class="ruby-keyword kw">end</span>
|
38
|
-
104:
|
39
|
-
105: <span class="ruby-identifier">render</span> <span class="ruby-identifier">:install_result</span>
|
40
|
-
106: <span class="ruby-keyword kw">end</span>
|
41
|
-
107: <span class="ruby-keyword kw">end</span></pre>
|
42
|
-
</body>
|
43
|
-
</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>good? (Configure::Controllers::Install)</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 109</span>
|
14
|
-
109: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">good?</span>(<span class="ruby-identifier">field</span>)
|
15
|
-
110: <span class="ruby-identifier">field</span> <span class="ruby-keyword kw">and</span> <span class="ruby-keyword kw">not</span> <span class="ruby-identifier">field</span>.<span class="ruby-identifier">strip</span>.<span class="ruby-identifier">empty?</span>
|
16
|
-
111: <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>bad? (Configure::Controllers::Install)</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 113</span>
|
14
|
-
113: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">bad?</span>(<span class="ruby-identifier">field</span>)
|
15
|
-
114: <span class="ruby-keyword kw">not</span> <span class="ruby-identifier">good?</span> <span class="ruby-identifier">field</span>
|
16
|
-
115: <span class="ruby-keyword kw">end</span></pre>
|
17
|
-
</body>
|
18
|
-
</html>
|
@@ -1,137 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
-
<head>
|
8
|
-
<title>Class: Configure::Controllers::Kill</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
-
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
12
|
-
<script type="text/javascript">
|
13
|
-
// <![CDATA[
|
14
|
-
|
15
|
-
function popupCode( url ) {
|
16
|
-
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
-
}
|
18
|
-
|
19
|
-
function toggleCode( id ) {
|
20
|
-
if ( document.getElementById )
|
21
|
-
elem = document.getElementById( id );
|
22
|
-
else if ( document.all )
|
23
|
-
elem = eval( "document.all." + id );
|
24
|
-
else
|
25
|
-
return false;
|
26
|
-
|
27
|
-
elemStyle = elem.style;
|
28
|
-
|
29
|
-
if ( elemStyle.display != "block" ) {
|
30
|
-
elemStyle.display = "block"
|
31
|
-
} else {
|
32
|
-
elemStyle.display = "none"
|
33
|
-
}
|
34
|
-
|
35
|
-
return true;
|
36
|
-
}
|
37
|
-
|
38
|
-
// Make codeblocks hidden by default
|
39
|
-
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
-
|
41
|
-
// ]]>
|
42
|
-
</script>
|
43
|
-
|
44
|
-
</head>
|
45
|
-
<body>
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
<div id="classHeader">
|
50
|
-
<table class="header-table">
|
51
|
-
<tr class="top-aligned-row">
|
52
|
-
<td><strong>Class</strong></td>
|
53
|
-
<td class="class-name-in-header">Configure::Controllers::Kill</td>
|
54
|
-
</tr>
|
55
|
-
<tr class="top-aligned-row">
|
56
|
-
<td><strong>In:</strong></td>
|
57
|
-
<td>
|
58
|
-
<a href="../../../files/lib/mongrel_config/app_rb.html">
|
59
|
-
lib/mongrel_config/app.rb
|
60
|
-
</a>
|
61
|
-
<br />
|
62
|
-
</td>
|
63
|
-
</tr>
|
64
|
-
|
65
|
-
<tr class="top-aligned-row">
|
66
|
-
<td><strong>Parent:</strong></td>
|
67
|
-
<td>
|
68
|
-
R'/kill/(\w+)'
|
69
|
-
</td>
|
70
|
-
</tr>
|
71
|
-
</table>
|
72
|
-
</div>
|
73
|
-
<!-- banner header -->
|
74
|
-
|
75
|
-
<div id="bodyContent">
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
<div id="contextContent">
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
</div>
|
84
|
-
|
85
|
-
<div id="method-list">
|
86
|
-
<h3 class="section-bar">Methods</h3>
|
87
|
-
|
88
|
-
<div class="name-list">
|
89
|
-
<a href="#M000029">get</a>
|
90
|
-
</div>
|
91
|
-
</div>
|
92
|
-
|
93
|
-
</div>
|
94
|
-
|
95
|
-
|
96
|
-
<!-- if includes -->
|
97
|
-
|
98
|
-
<div id="section">
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
<!-- if method_list -->
|
108
|
-
<div id="methods">
|
109
|
-
<h3 class="section-bar">Public Instance methods</h3>
|
110
|
-
|
111
|
-
<div id="method-M000029" class="method-detail">
|
112
|
-
<a name="M000029"></a>
|
113
|
-
|
114
|
-
<div class="method-heading">
|
115
|
-
<a href="Kill.src/M000029.html" target="Code" class="method-signature"
|
116
|
-
onclick="popupCode('Kill.src/M000029.html');return false;">
|
117
|
-
<span class="method-name">get</span><span class="method-args">(signal)</span>
|
118
|
-
</a>
|
119
|
-
</div>
|
120
|
-
|
121
|
-
<div class="method-description">
|
122
|
-
</div>
|
123
|
-
</div>
|
124
|
-
|
125
|
-
|
126
|
-
</div>
|
127
|
-
|
128
|
-
|
129
|
-
</div>
|
130
|
-
|
131
|
-
|
132
|
-
<div id="validator-badges">
|
133
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
134
|
-
</div>
|
135
|
-
|
136
|
-
</body>
|
137
|
-
</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>get (Configure::Controllers::Kill)</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 28</span>
|
14
|
-
28: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get</span>(<span class="ruby-identifier">signal</span>)
|
15
|
-
29: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">_running?</span>
|
16
|
-
30: <span class="ruby-ivar">@signal</span> = <span class="ruby-identifier">signal</span>.<span class="ruby-identifier">upcase</span>
|
17
|
-
31: <span class="ruby-identifier">pid</span> = <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> }
|
18
|
-
32: <span class="ruby-keyword kw">begin</span>
|
19
|
-
33: <span class="ruby-constant">Process</span>.<span class="ruby-identifier">kill</span>(<span class="ruby-ivar">@signal</span>, <span class="ruby-identifier">pid</span>.<span class="ruby-identifier">to_i</span>)
|
20
|
-
34: <span class="ruby-ivar">@results</span> = <span class="ruby-node">"Mongrel sent PID #{pid} signal #{@signal}."</span>
|
21
|
-
35: <span class="ruby-keyword kw">rescue</span>
|
22
|
-
36: <span class="ruby-identifier">puts</span> <span class="ruby-value str">"ERROR: #$!"</span>
|
23
|
-
37: <span class="ruby-ivar">@results</span> = <span class="ruby-value str">"Failed to signal the Mongrel process. Maybe it is not running?<p>#$!</p>"</span>
|
24
|
-
38: <span class="ruby-keyword kw">end</span>
|
25
|
-
39: <span class="ruby-keyword kw">else</span>
|
26
|
-
40: <span class="ruby-ivar">@results</span> = <span class="ruby-node">"Mongrel does not seem to be running. Maybe delete the pid file #{$PID_FILE} or start again."</span>
|
27
|
-
41: <span class="ruby-keyword kw">end</span>
|
28
|
-
42:
|
29
|
-
43: <span class="ruby-identifier">render</span> <span class="ruby-identifier">:kill</span>
|
30
|
-
44: <span class="ruby-keyword kw">end</span></pre>
|
31
|
-
</body>
|
32
|
-
</html>
|