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,156 @@
|
|
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::Index</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::Index</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
|
+
<a href="../../../files/lib/mongrel_config/win32_app_rb.html">
|
63
|
+
lib/mongrel_config/win32_app.rb
|
64
|
+
</a>
|
65
|
+
<br />
|
66
|
+
</td>
|
67
|
+
</tr>
|
68
|
+
|
69
|
+
<tr class="top-aligned-row">
|
70
|
+
<td><strong>Parent:</strong></td>
|
71
|
+
<td>
|
72
|
+
R'/'
|
73
|
+
</td>
|
74
|
+
</tr>
|
75
|
+
</table>
|
76
|
+
</div>
|
77
|
+
<!-- banner header -->
|
78
|
+
|
79
|
+
<div id="bodyContent">
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
<div id="contextContent">
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
</div>
|
88
|
+
|
89
|
+
<div id="method-list">
|
90
|
+
<h3 class="section-bar">Methods</h3>
|
91
|
+
|
92
|
+
<div class="name-list">
|
93
|
+
<a href="#M000027">get</a>
|
94
|
+
<a href="#M000028">get</a>
|
95
|
+
</div>
|
96
|
+
</div>
|
97
|
+
|
98
|
+
</div>
|
99
|
+
|
100
|
+
|
101
|
+
<!-- if includes -->
|
102
|
+
|
103
|
+
<div id="section">
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
|
112
|
+
<!-- if method_list -->
|
113
|
+
<div id="methods">
|
114
|
+
<h3 class="section-bar">Public Instance methods</h3>
|
115
|
+
|
116
|
+
<div id="method-M000027" class="method-detail">
|
117
|
+
<a name="M000027"></a>
|
118
|
+
|
119
|
+
<div class="method-heading">
|
120
|
+
<a href="Index.src/M000027.html" target="Code" class="method-signature"
|
121
|
+
onclick="popupCode('Index.src/M000027.html');return false;">
|
122
|
+
<span class="method-name">get</span><span class="method-args">()</span>
|
123
|
+
</a>
|
124
|
+
</div>
|
125
|
+
|
126
|
+
<div class="method-description">
|
127
|
+
</div>
|
128
|
+
</div>
|
129
|
+
|
130
|
+
<div id="method-M000028" class="method-detail">
|
131
|
+
<a name="M000028"></a>
|
132
|
+
|
133
|
+
<div class="method-heading">
|
134
|
+
<a href="Index.src/M000028.html" target="Code" class="method-signature"
|
135
|
+
onclick="popupCode('Index.src/M000028.html');return false;">
|
136
|
+
<span class="method-name">get</span><span class="method-args">()</span>
|
137
|
+
</a>
|
138
|
+
</div>
|
139
|
+
|
140
|
+
<div class="method-description">
|
141
|
+
</div>
|
142
|
+
</div>
|
143
|
+
|
144
|
+
|
145
|
+
</div>
|
146
|
+
|
147
|
+
|
148
|
+
</div>
|
149
|
+
|
150
|
+
|
151
|
+
<div id="validator-badges">
|
152
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
153
|
+
</div>
|
154
|
+
|
155
|
+
</body>
|
156
|
+
</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>get (Configure::Controllers::Index)</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 10</span>
|
14
|
+
10: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get</span>
|
15
|
+
11: <span class="ruby-identifier">render</span> <span class="ruby-identifier">:show</span>
|
16
|
+
12: <span class="ruby-keyword kw">end</span></pre>
|
17
|
+
</body>
|
18
|
+
</html>
|
@@ -0,0 +1,19 @@
|
|
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::Index)</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 17</span>
|
14
|
+
17: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get</span>
|
15
|
+
18: <span class="ruby-ivar">@services</span> = <span class="ruby-constant">W32Support</span>.<span class="ruby-identifier">list</span>
|
16
|
+
19: <span class="ruby-identifier">render</span> <span class="ruby-identifier">:list</span>
|
17
|
+
20: <span class="ruby-keyword kw">end</span></pre>
|
18
|
+
</body>
|
19
|
+
</html>
|
@@ -0,0 +1,137 @@
|
|
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::Info</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::Info</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'/info/(\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="#M000035">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-M000035" class="method-detail">
|
112
|
+
<a name="M000035"></a>
|
113
|
+
|
114
|
+
<div class="method-heading">
|
115
|
+
<a href="Info.src/M000035.html" target="Code" class="method-signature"
|
116
|
+
onclick="popupCode('Info.src/M000035.html');return false;">
|
117
|
+
<span class="method-name">get</span><span class="method-args">(name)</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>
|
@@ -0,0 +1,19 @@
|
|
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>
|
@@ -0,0 +1,182 @@
|
|
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>
|
@@ -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>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>
|
@@ -0,0 +1,43 @@
|
|
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>
|
@@ -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>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>
|
@@ -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>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>
|