mongrel_config 0.3 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (79) hide show
  1. data.tar.gz.sig +0 -0
  2. data/CHANGELOG +2 -0
  3. data/Manifest +21 -0
  4. data/lib/mongrel_config/app.rb +1 -2
  5. data/mongrel_config.gemspec +46 -0
  6. metadata +88 -126
  7. metadata.gz.sig +1 -0
  8. data/Rakefile +0 -39
  9. data/doc/rdoc/classes/ConfigTool.html +0 -174
  10. data/doc/rdoc/classes/ConfigTool.src/M000001.html +0 -33
  11. data/doc/rdoc/classes/ConfigTool.src/M000002.html +0 -28
  12. data/doc/rdoc/classes/ConfigTool.src/M000003.html +0 -45
  13. data/doc/rdoc/classes/Configure.html +0 -112
  14. data/doc/rdoc/classes/Configure/Controllers.html +0 -123
  15. data/doc/rdoc/classes/Configure/Controllers/ClearLogs.html +0 -137
  16. data/doc/rdoc/classes/Configure/Controllers/ClearLogs.src/M000043.html +0 -21
  17. data/doc/rdoc/classes/Configure/Controllers/Delete.html +0 -137
  18. data/doc/rdoc/classes/Configure/Controllers/Delete.src/M000036.html +0 -20
  19. data/doc/rdoc/classes/Configure/Controllers/Index.html +0 -156
  20. data/doc/rdoc/classes/Configure/Controllers/Index.src/M000027.html +0 -18
  21. data/doc/rdoc/classes/Configure/Controllers/Index.src/M000028.html +0 -19
  22. data/doc/rdoc/classes/Configure/Controllers/Info.html +0 -137
  23. data/doc/rdoc/classes/Configure/Controllers/Info.src/M000035.html +0 -19
  24. data/doc/rdoc/classes/Configure/Controllers/Install.html +0 -182
  25. data/doc/rdoc/classes/Configure/Controllers/Install.src/M000039.html +0 -18
  26. data/doc/rdoc/classes/Configure/Controllers/Install.src/M000040.html +0 -43
  27. data/doc/rdoc/classes/Configure/Controllers/Install.src/M000041.html +0 -18
  28. data/doc/rdoc/classes/Configure/Controllers/Install.src/M000042.html +0 -18
  29. data/doc/rdoc/classes/Configure/Controllers/Kill.html +0 -137
  30. data/doc/rdoc/classes/Configure/Controllers/Kill.src/M000029.html +0 -32
  31. data/doc/rdoc/classes/Configure/Controllers/Logs.html +0 -162
  32. data/doc/rdoc/classes/Configure/Controllers/Logs.src/M000037.html +0 -19
  33. data/doc/rdoc/classes/Configure/Controllers/Logs.src/M000038.html +0 -18
  34. data/doc/rdoc/classes/Configure/Controllers/Start.html +0 -171
  35. data/doc/rdoc/classes/Configure/Controllers/Start.src/M000032.html +0 -18
  36. data/doc/rdoc/classes/Configure/Controllers/Start.src/M000033.html +0 -19
  37. data/doc/rdoc/classes/Configure/Controllers/Start.src/M000034.html +0 -27
  38. data/doc/rdoc/classes/Configure/Controllers/Stop.html +0 -156
  39. data/doc/rdoc/classes/Configure/Controllers/Stop.src/M000030.html +0 -18
  40. data/doc/rdoc/classes/Configure/Controllers/Stop.src/M000031.html +0 -26
  41. data/doc/rdoc/classes/Configure/Views.html +0 -360
  42. data/doc/rdoc/classes/Configure/Views.src/M000011.html +0 -24
  43. data/doc/rdoc/classes/Configure/Views.src/M000012.html +0 -25
  44. data/doc/rdoc/classes/Configure/Views.src/M000013.html +0 -26
  45. data/doc/rdoc/classes/Configure/Views.src/M000014.html +0 -20
  46. data/doc/rdoc/classes/Configure/Views.src/M000015.html +0 -31
  47. data/doc/rdoc/classes/Configure/Views.src/M000016.html +0 -27
  48. data/doc/rdoc/classes/Configure/Views.src/M000017.html +0 -32
  49. data/doc/rdoc/classes/Configure/Views.src/M000018.html +0 -18
  50. data/doc/rdoc/classes/Configure/Views.src/M000019.html +0 -18
  51. data/doc/rdoc/classes/Configure/Views.src/M000020.html +0 -29
  52. data/doc/rdoc/classes/Configure/Views.src/M000021.html +0 -42
  53. data/doc/rdoc/classes/Configure/Views.src/M000022.html +0 -34
  54. data/doc/rdoc/classes/Configure/Views.src/M000023.html +0 -25
  55. data/doc/rdoc/classes/Configure/Views.src/M000024.html +0 -35
  56. data/doc/rdoc/classes/Configure/Views.src/M000025.html +0 -23
  57. data/doc/rdoc/classes/Configure/Views.src/M000026.html +0 -20
  58. data/doc/rdoc/classes/W32Support.html +0 -258
  59. data/doc/rdoc/classes/W32Support.src/M000004.html +0 -18
  60. data/doc/rdoc/classes/W32Support.src/M000005.html +0 -18
  61. data/doc/rdoc/classes/W32Support.src/M000006.html +0 -33
  62. data/doc/rdoc/classes/W32Support.src/M000007.html +0 -20
  63. data/doc/rdoc/classes/W32Support.src/M000008.html +0 -20
  64. data/doc/rdoc/classes/W32Support.src/M000009.html +0 -18
  65. data/doc/rdoc/classes/W32Support.src/M000010.html +0 -28
  66. data/doc/rdoc/created.rid +0 -1
  67. data/doc/rdoc/files/COPYING.html +0 -756
  68. data/doc/rdoc/files/LICENSE.html +0 -756
  69. data/doc/rdoc/files/README.html +0 -110
  70. data/doc/rdoc/files/lib/mongrel_config/app_rb.html +0 -110
  71. data/doc/rdoc/files/lib/mongrel_config/init_rb.html +0 -112
  72. data/doc/rdoc/files/lib/mongrel_config/win32_app_rb.html +0 -113
  73. data/doc/rdoc/files/lib/mongrel_config/win32_rb.html +0 -108
  74. data/doc/rdoc/fr_class_index.html +0 -40
  75. data/doc/rdoc/fr_file_index.html +0 -33
  76. data/doc/rdoc/fr_method_index.html +0 -69
  77. data/doc/rdoc/index.html +0 -24
  78. data/doc/rdoc/rdoc-style.css +0 -208
  79. 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>&nbsp;&nbsp;
90
- <a href="#M000039">get</a>&nbsp;&nbsp;
91
- <a href="#M000041">good?</a>&nbsp;&nbsp;
92
- <a href="#M000040">post</a>&nbsp;&nbsp;
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">&quot;ERROR: You must fill out all mandatory (*) fields.&quot;</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">&lt;&lt;</span> [<span class="ruby-value str">&quot;-n&quot;</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">&lt;&lt;</span> [<span class="ruby-value str">&quot;-r&quot;</span>, <span class="ruby-value str">'&quot;'</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">'&quot;'</span>]
22
- 88: <span class="ruby-identifier">options</span> <span class="ruby-operator">&lt;&lt;</span> [<span class="ruby-value str">&quot;-e&quot;</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">&lt;&lt;</span> [<span class="ruby-value str">&quot;-b&quot;</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">&lt;&lt;</span> [<span class="ruby-value str">&quot;-p&quot;</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">&lt;&lt;</span> [<span class="ruby-value str">&quot;-d&quot;</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">&lt;&lt;</span> [<span class="ruby-value str">&quot;-m&quot;</span>, <span class="ruby-value str">'&quot;'</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">'&quot;'</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">&lt;&lt;</span> [<span class="ruby-value str">&quot;-P&quot;</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">&lt;&lt;</span> [<span class="ruby-value str">&quot;-t&quot;</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">&lt;&lt;</span> [<span class="ruby-value str">&quot;-c&quot;</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">&lt;&lt;</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">&quot;Failed to start #{input.service_name}: #$!&quot;</span>
36
- 102: <span class="ruby-identifier">$service_logs</span> <span class="ruby-operator">&lt;&lt;</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>&nbsp;&nbsp;
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">&quot;Mongrel sent PID #{pid} signal #{@signal}.&quot;</span>
21
- 35: <span class="ruby-keyword kw">rescue</span>
22
- 36: <span class="ruby-identifier">puts</span> <span class="ruby-value str">&quot;ERROR: #$!&quot;</span>
23
- 37: <span class="ruby-ivar">@results</span> = <span class="ruby-value str">&quot;Failed to signal the Mongrel process. Maybe it is not running?&lt;p&gt;#$!&lt;/p&gt;&quot;</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">&quot;Mongrel does not seem to be running. Maybe delete the pid file #{$PID_FILE} or start again.&quot;</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>