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
data/Rakefile
CHANGED
@@ -15,7 +15,7 @@ setup_rdoc ['README', 'LICENSE', 'COPYING', 'lib/**/*.rb', 'doc/**/*.rdoc']
|
|
15
15
|
desc "Does a full compile, test run"
|
16
16
|
task :default => [:test, :package]
|
17
17
|
|
18
|
-
version="0.
|
18
|
+
version="0.3"
|
19
19
|
name="mongrel_config"
|
20
20
|
|
21
21
|
setup_gem(name, version) do |spec|
|
@@ -23,13 +23,12 @@ setup_gem(name, version) do |spec|
|
|
23
23
|
spec.description = spec.summary
|
24
24
|
spec.test_file = "test/test_config.rb"
|
25
25
|
spec.author="Zed A. Shaw"
|
26
|
-
spec.add_dependency('mongrel', '>= 0.3.
|
27
|
-
spec.add_dependency('gem_plugin', '>= 0.2')
|
26
|
+
spec.add_dependency('mongrel', '>= 0.3.11')
|
27
|
+
spec.add_dependency('gem_plugin', '>= 0.2.1')
|
28
28
|
spec.add_dependency('camping', '>= 1.3')
|
29
29
|
spec.files += Dir.glob("resources/**/*")
|
30
30
|
end
|
31
31
|
|
32
|
-
|
33
32
|
task :install => [:test, :package] do
|
34
33
|
sh %{sudo gem install pkg/#{name}-#{version}.gem}
|
35
34
|
end
|
@@ -0,0 +1,174 @@
|
|
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: ConfigTool</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">ConfigTool</td>
|
54
|
+
</tr>
|
55
|
+
<tr class="top-aligned-row">
|
56
|
+
<td><strong>In:</strong></td>
|
57
|
+
<td>
|
58
|
+
<a href="../files/lib/mongrel_config/init_rb.html">
|
59
|
+
lib/mongrel_config/init.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
|
+
GemPlugin::Plugin"/commands"
|
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="#M000001">configure</a>
|
90
|
+
<a href="#M000003">run</a>
|
91
|
+
<a href="#M000002">validate</a>
|
92
|
+
</div>
|
93
|
+
</div>
|
94
|
+
|
95
|
+
</div>
|
96
|
+
|
97
|
+
|
98
|
+
<!-- if includes -->
|
99
|
+
<div id="includes">
|
100
|
+
<h3 class="section-bar">Included Modules</h3>
|
101
|
+
|
102
|
+
<div id="includes-list">
|
103
|
+
<span class="include-name">Mongrel::Command::Base</span>
|
104
|
+
</div>
|
105
|
+
</div>
|
106
|
+
|
107
|
+
<div id="section">
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
|
116
|
+
<!-- if method_list -->
|
117
|
+
<div id="methods">
|
118
|
+
<h3 class="section-bar">Public Instance methods</h3>
|
119
|
+
|
120
|
+
<div id="method-M000001" class="method-detail">
|
121
|
+
<a name="M000001"></a>
|
122
|
+
|
123
|
+
<div class="method-heading">
|
124
|
+
<a href="ConfigTool.src/M000001.html" target="Code" class="method-signature"
|
125
|
+
onclick="popupCode('ConfigTool.src/M000001.html');return false;">
|
126
|
+
<span class="method-name">configure</span><span class="method-args">()</span>
|
127
|
+
</a>
|
128
|
+
</div>
|
129
|
+
|
130
|
+
<div class="method-description">
|
131
|
+
</div>
|
132
|
+
</div>
|
133
|
+
|
134
|
+
<div id="method-M000003" class="method-detail">
|
135
|
+
<a name="M000003"></a>
|
136
|
+
|
137
|
+
<div class="method-heading">
|
138
|
+
<a href="ConfigTool.src/M000003.html" target="Code" class="method-signature"
|
139
|
+
onclick="popupCode('ConfigTool.src/M000003.html');return false;">
|
140
|
+
<span class="method-name">run</span><span class="method-args">()</span>
|
141
|
+
</a>
|
142
|
+
</div>
|
143
|
+
|
144
|
+
<div class="method-description">
|
145
|
+
</div>
|
146
|
+
</div>
|
147
|
+
|
148
|
+
<div id="method-M000002" class="method-detail">
|
149
|
+
<a name="M000002"></a>
|
150
|
+
|
151
|
+
<div class="method-heading">
|
152
|
+
<a href="ConfigTool.src/M000002.html" target="Code" class="method-signature"
|
153
|
+
onclick="popupCode('ConfigTool.src/M000002.html');return false;">
|
154
|
+
<span class="method-name">validate</span><span class="method-args">()</span>
|
155
|
+
</a>
|
156
|
+
</div>
|
157
|
+
|
158
|
+
<div class="method-description">
|
159
|
+
</div>
|
160
|
+
</div>
|
161
|
+
|
162
|
+
|
163
|
+
</div>
|
164
|
+
|
165
|
+
|
166
|
+
</div>
|
167
|
+
|
168
|
+
|
169
|
+
<div id="validator-badges">
|
170
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
171
|
+
</div>
|
172
|
+
|
173
|
+
</body>
|
174
|
+
</html>
|
@@ -0,0 +1,33 @@
|
|
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>configure (ConfigTool)</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/init.rb, line 9</span>
|
14
|
+
9: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">configure</span>
|
15
|
+
10: <span class="ruby-keyword kw">if</span> <span class="ruby-constant">RUBY_PLATFORM</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/mswin/</span>
|
16
|
+
11: <span class="ruby-identifier">options</span> [
|
17
|
+
12: [<span class="ruby-value str">'-h'</span>, <span class="ruby-value str">'--host ADDR'</span>, <span class="ruby-value str">"Host to bind to for server"</span>, <span class="ruby-identifier">:@host</span>, <span class="ruby-value str">"0.0.0.0"</span>],
|
18
|
+
13: [<span class="ruby-value str">'-p'</span>, <span class="ruby-value str">'--port NUMBER'</span>, <span class="ruby-value str">"Port to bind to"</span>, <span class="ruby-identifier">:@port</span>, <span class="ruby-value str">"3001"</span>],
|
19
|
+
14: [<span class="ruby-value str">'-u'</span>, <span class="ruby-value str">'--uri URI'</span>, <span class="ruby-value str">"Where to put your config tool"</span>, <span class="ruby-identifier">:@uri</span>, <span class="ruby-value str">"/config"</span>],
|
20
|
+
15: [<span class="ruby-value str">'-R'</span>, <span class="ruby-value str">'--mongrel PATH'</span>, <span class="ruby-value str">"Path to mongrel_rails_service"</span>, <span class="ruby-identifier">:@mongrel_script</span>, <span class="ruby-value str">"c:\\ruby\\bin\\mongrel_rails_service"</span>]
|
21
|
+
16: ]
|
22
|
+
17: <span class="ruby-keyword kw">else</span>
|
23
|
+
18: <span class="ruby-identifier">options</span> [
|
24
|
+
19: [<span class="ruby-value str">'-c'</span>, <span class="ruby-value str">'--chdir PATH'</span>, <span class="ruby-value str">"Change to dir before starting (will be expanded)"</span>, <span class="ruby-identifier">:@cwd</span>, <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">pwd</span>],
|
25
|
+
20: [<span class="ruby-value str">'-P'</span>, <span class="ruby-value str">'--pid FILE'</span>, <span class="ruby-value str">"Where to write the PID"</span>, <span class="ruby-identifier">:@pid_file</span>, <span class="ruby-value str">"log/mongrel.pid"</span>],
|
26
|
+
21: [<span class="ruby-value str">'-h'</span>, <span class="ruby-value str">'--host ADDR'</span>, <span class="ruby-value str">"Host to bind to for server"</span>, <span class="ruby-identifier">:@host</span>, <span class="ruby-value str">"0.0.0.0"</span>],
|
27
|
+
22: [<span class="ruby-value str">'-p'</span>, <span class="ruby-value str">'--port NUMBER'</span>, <span class="ruby-value str">"Port to bind to"</span>, <span class="ruby-identifier">:@port</span>, <span class="ruby-value str">"3001"</span>],
|
28
|
+
23: [<span class="ruby-value str">'-u'</span>, <span class="ruby-value str">'--uri URI'</span>, <span class="ruby-value str">"Where to put your config tool"</span>, <span class="ruby-identifier">:@uri</span>, <span class="ruby-value str">"/config"</span>]
|
29
|
+
24: ]
|
30
|
+
25: <span class="ruby-keyword kw">end</span>
|
31
|
+
26: <span class="ruby-keyword kw">end</span></pre>
|
32
|
+
</body>
|
33
|
+
</html>
|
@@ -0,0 +1,28 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>validate (ConfigTool)</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/init.rb, line 28</span>
|
14
|
+
28: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">validate</span>
|
15
|
+
29: <span class="ruby-identifier">valid?</span>(<span class="ruby-ivar">@uri</span>, <span class="ruby-value str">"Must give a uri"</span>)
|
16
|
+
30: <span class="ruby-identifier">valid?</span>(<span class="ruby-ivar">@port</span> <span class="ruby-operator">&&</span> <span class="ruby-ivar">@port</span>.<span class="ruby-identifier">to_i</span> <span class="ruby-operator">></span> <span class="ruby-value">0</span>, <span class="ruby-value str">"Must give a valid port"</span>)
|
17
|
+
31: <span class="ruby-identifier">valid?</span>(<span class="ruby-ivar">@host</span>, <span class="ruby-value str">"Host IP to bind must be given"</span>)
|
18
|
+
32:
|
19
|
+
33: <span class="ruby-keyword kw">if</span> <span class="ruby-constant">RUBY_PLATFORM</span> <span class="ruby-operator">!~</span> <span class="ruby-regexp re">/mswin/</span>
|
20
|
+
34: <span class="ruby-identifier">valid_dir?</span> <span class="ruby-ivar">@cwd</span>, <span class="ruby-value str">"Cannot change to a directory that doesn't exist"</span>
|
21
|
+
35: <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">chdir</span> <span class="ruby-ivar">@cwd</span>
|
22
|
+
36: <span class="ruby-identifier">valid_dir?</span> <span class="ruby-value str">"log"</span>, <span class="ruby-value str">"Log directory does not exist"</span>
|
23
|
+
37: <span class="ruby-keyword kw">end</span>
|
24
|
+
38:
|
25
|
+
39: <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@valid</span>
|
26
|
+
40: <span class="ruby-keyword kw">end</span></pre>
|
27
|
+
</body>
|
28
|
+
</html>
|
@@ -0,0 +1,45 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>run (ConfigTool)</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/init.rb, line 43</span>
|
14
|
+
43: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">run</span>
|
15
|
+
44: <span class="ruby-comment cmt"># must require this here since rails and camping don't like eachother</span>
|
16
|
+
45: <span class="ruby-keyword kw">if</span> <span class="ruby-constant">RUBY_PLATFORM</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/mswin/</span>
|
17
|
+
46: <span class="ruby-identifier">require</span> <span class="ruby-value str">'mongrel_config/win32_app'</span>
|
18
|
+
47: <span class="ruby-identifier">$mongrel_rails_service</span> = <span class="ruby-ivar">@mongrel_script</span>
|
19
|
+
48: <span class="ruby-keyword kw">else</span>
|
20
|
+
49: <span class="ruby-identifier">require</span> <span class="ruby-value str">'mongrel_config/app'</span>
|
21
|
+
50: <span class="ruby-keyword kw">end</span>
|
22
|
+
51:
|
23
|
+
52: <span class="ruby-identifier">resources</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">"/"</span>
|
24
|
+
53: <span class="ruby-identifier">$PID_FILE</span> = <span class="ruby-ivar">@pid_file</span>
|
25
|
+
54:
|
26
|
+
55: <span class="ruby-identifier">$server</span> = <span class="ruby-constant">Mongrel</span><span class="ruby-operator">::</span><span class="ruby-constant">Camping</span><span class="ruby-operator">::</span><span class="ruby-identifier">start</span>(<span class="ruby-ivar">@host</span>,<span class="ruby-ivar">@port</span>,<span class="ruby-ivar">@uri</span>,<span class="ruby-constant">Configure</span>)
|
27
|
+
56:
|
28
|
+
57: <span class="ruby-identifier">puts</span> <span class="ruby-node">"** Configure is running at http://#{@host}:#{@port}#{@uri}"</span>
|
29
|
+
58: <span class="ruby-keyword kw">if</span> <span class="ruby-constant">RUBY_PLATFORM</span> <span class="ruby-operator">!~</span> <span class="ruby-regexp re">/mswin/</span>
|
30
|
+
59: <span class="ruby-identifier">trap</span>(<span class="ruby-value str">"INT"</span>) {
|
31
|
+
60: <span class="ruby-identifier">$server</span>.<span class="ruby-identifier">stop</span>
|
32
|
+
61: }
|
33
|
+
62: <span class="ruby-identifier">puts</span> <span class="ruby-value str">"Use CTRL-C to quit."</span>
|
34
|
+
63: <span class="ruby-keyword kw">else</span>
|
35
|
+
64: <span class="ruby-identifier">puts</span> <span class="ruby-value str">"Use CTRL-Pause/Break to quit."</span>
|
36
|
+
65: <span class="ruby-keyword kw">end</span>
|
37
|
+
66:
|
38
|
+
67: <span class="ruby-comment cmt"># add our log directory</span>
|
39
|
+
68: <span class="ruby-identifier">$server</span>.<span class="ruby-identifier">register</span>(<span class="ruby-value str">"/log"</span>, <span class="ruby-constant">Mongrel</span><span class="ruby-operator">::</span><span class="ruby-constant">DirHandler</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">"log"</span>))
|
40
|
+
69: <span class="ruby-identifier">$server</span>.<span class="ruby-identifier">register</span>(<span class="ruby-value str">"/config/resources"</span>, <span class="ruby-constant">Mongrel</span><span class="ruby-operator">::</span><span class="ruby-constant">DirHandler</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">resources</span>))
|
41
|
+
70:
|
42
|
+
71: <span class="ruby-identifier">$server</span>.<span class="ruby-identifier">acceptor</span>.<span class="ruby-identifier">join</span>
|
43
|
+
72: <span class="ruby-keyword kw">end</span></pre>
|
44
|
+
</body>
|
45
|
+
</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::ClearLogs</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::ClearLogs</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'/clear_logs'
|
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="#M000043">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-M000043" class="method-detail">
|
112
|
+
<a name="M000043"></a>
|
113
|
+
|
114
|
+
<div class="method-heading">
|
115
|
+
<a href="ClearLogs.src/M000043.html" target="Code" class="method-signature"
|
116
|
+
onclick="popupCode('ClearLogs.src/M000043.html');return false;">
|
117
|
+
<span class="method-name">get</span><span class="method-args">()</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,21 @@
|
|
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::ClearLogs)</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 67</span>
|
14
|
+
67: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get</span>
|
15
|
+
68: <span class="ruby-identifier">$service_logs</span> = <span class="ruby-value str">""</span>
|
16
|
+
69: <span class="ruby-identifier">$service_logs</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"#{Time.now}: CLEARED"</span>
|
17
|
+
70:
|
18
|
+
71: <span class="ruby-identifier">redirect</span> <span class="ruby-constant">Logs</span>
|
19
|
+
72: <span class="ruby-keyword kw">end</span></pre>
|
20
|
+
</body>
|
21
|
+
</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::Delete</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::Delete</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'/delete/(\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="#M000036">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-M000036" class="method-detail">
|
112
|
+
<a name="M000036"></a>
|
113
|
+
|
114
|
+
<div class="method-heading">
|
115
|
+
<a href="Delete.src/M000036.html" target="Code" class="method-signature"
|
116
|
+
onclick="popupCode('Delete.src/M000036.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,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>get (Configure::Controllers::Delete)</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 120</span>
|
14
|
+
120: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get</span>(<span class="ruby-identifier">name</span>)
|
15
|
+
121: <span class="ruby-constant">W32Support</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">name</span>)
|
16
|
+
122: <span class="ruby-identifier">$service_logs</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"Deleted #{name}\n"</span>
|
17
|
+
123: <span class="ruby-identifier">redirect</span> <span class="ruby-constant">Index</span>
|
18
|
+
124: <span class="ruby-keyword kw">end</span></pre>
|
19
|
+
</body>
|
20
|
+
</html>
|