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,26 +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>start (Configure::Views)</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
- </head>
12
- <body class="standalone-code">
13
- <pre> <span class="ruby-comment cmt"># File lib/mongrel_config/app.rb, line 86</span>
14
- 86: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">start</span>
15
- 87: <span class="ruby-identifier">div</span> <span class="ruby-keyword kw">do</span>
16
- 88: <span class="ruby-identifier">form</span> <span class="ruby-identifier">:action</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">&quot;/start&quot;</span>, <span class="ruby-identifier">:method</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">&quot;POST&quot;</span> <span class="ruby-keyword kw">do</span>
17
- 89: <span class="ruby-identifier">p</span> { <span class="ruby-identifier">span</span> { <span class="ruby-value str">&quot;Port:&quot;</span> }; <span class="ruby-identifier">input</span> <span class="ruby-identifier">:name</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">&quot;port&quot;</span>, <span class="ruby-identifier">:value</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">&quot;4000&quot;</span> }
18
- 90: <span class="ruby-identifier">p</span> { <span class="ruby-identifier">span</span> { <span class="ruby-value str">&quot;Environment:&quot;</span> }; <span class="ruby-identifier">input</span> <span class="ruby-identifier">:name</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">&quot;env&quot;</span>, <span class="ruby-identifier">:value</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">&quot;development&quot;</span> }
19
- 91: <span class="ruby-identifier">p</span> { <span class="ruby-identifier">span</span> { <span class="ruby-value str">&quot;Address:&quot;</span> }; <span class="ruby-identifier">input</span> <span class="ruby-identifier">:name</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">&quot;address&quot;</span>, <span class="ruby-identifier">:value</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">&quot;0.0.0.0&quot;</span> }
20
- 92: <span class="ruby-identifier">p</span> { <span class="ruby-identifier">span</span> { <span class="ruby-value str">&quot;Number Processors:&quot;</span> }; <span class="ruby-identifier">input</span> <span class="ruby-identifier">:name</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">&quot;num_procs&quot;</span>, <span class="ruby-identifier">:value</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">&quot;20&quot;</span> }
21
- 93: <span class="ruby-identifier">input</span> <span class="ruby-identifier">:type</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">&quot;submit&quot;</span>, <span class="ruby-identifier">:value</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">&quot;START&quot;</span>
22
- 94: <span class="ruby-keyword kw">end</span>
23
- 95: <span class="ruby-keyword kw">end</span>
24
- 96: <span class="ruby-keyword kw">end</span></pre>
25
- </body>
26
- </html>
@@ -1,20 +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>start_done (Configure::Views)</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
- </head>
12
- <body class="standalone-code">
13
- <pre> <span class="ruby-comment cmt"># File lib/mongrel_config/app.rb, line 98</span>
14
- 98: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">start_done</span>
15
- 99: <span class="ruby-identifier">div</span> <span class="ruby-keyword kw">do</span>
16
- 100: <span class="ruby-identifier">p</span> { <span class="ruby-ivar">@results</span> }
17
- 101: <span class="ruby-keyword kw">end</span>
18
- 102: <span class="ruby-keyword kw">end</span></pre>
19
- </body>
20
- </html>
@@ -1,31 +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>kill (Configure::Views)</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
- </head>
12
- <body class="standalone-code">
13
- <pre> <span class="ruby-comment cmt"># File lib/mongrel_config/app.rb, line 104</span>
14
- 104: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">kill</span>
15
- 105: <span class="ruby-identifier">div</span> <span class="ruby-keyword kw">do</span>
16
- 106: <span class="ruby-identifier">p</span> { <span class="ruby-ivar">@results</span> }
17
- 107:
18
- 108: <span class="ruby-keyword kw">case</span> <span class="ruby-ivar">@signal</span>
19
- 109: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">&quot;HUP&quot;</span><span class="ruby-operator">:</span>
20
- 110: <span class="ruby-identifier">p</span> { <span class="ruby-value str">&quot;A reload (HUP) does not stop the process, but may not be complete.&quot;</span> }
21
- 111: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">&quot;TERM&quot;</span><span class="ruby-operator">:</span>
22
- 112: <span class="ruby-identifier">p</span> { <span class="ruby-value str">&quot;Stopped with TERM signal. The process should exit shortly, but only after processing pending requests.&quot;</span> }
23
- 113: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">&quot;USR2&quot;</span><span class="ruby-operator">:</span>
24
- 114: <span class="ruby-identifier">p</span> { <span class="ruby-value str">&quot;Complete restart (USR2) may take a little while. Check status in a few seconds or read logs.&quot;</span> }
25
- 115: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">&quot;KILL&quot;</span><span class="ruby-operator">:</span>
26
- 116: <span class="ruby-identifier">p</span> { <span class="ruby-value str">&quot;Process was violently stopped (KILL) so pending requests will be lost.&quot;</span> }
27
- 117: <span class="ruby-keyword kw">end</span>
28
- 118: <span class="ruby-keyword kw">end</span>
29
- 119: <span class="ruby-keyword kw">end</span></pre>
30
- </body>
31
- </html>
@@ -1,27 +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>stop (Configure::Views)</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
- </head>
12
- <body class="standalone-code">
13
- <pre> <span class="ruby-comment cmt"># File lib/mongrel_config/app.rb, line 121</span>
14
- 121: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">stop</span>
15
- 122: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">_running?</span>
16
- 123: <span class="ruby-identifier">ul</span> <span class="ruby-keyword kw">do</span>
17
- 124: <span class="ruby-identifier">li</span> { <span class="ruby-identifier">a</span> <span class="ruby-value str">&quot;Stop (TERM)&quot;</span>, <span class="ruby-identifier">:href</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">&quot;/kill/term&quot;</span> }
18
- 125: <span class="ruby-identifier">li</span> { <span class="ruby-identifier">a</span> <span class="ruby-value str">&quot;Reload (HUP)&quot;</span>, <span class="ruby-identifier">:href</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">&quot;/kill/hup&quot;</span> }
19
- 126: <span class="ruby-identifier">li</span> { <span class="ruby-identifier">a</span> <span class="ruby-value str">&quot;Restart (USR2)&quot;</span>, <span class="ruby-identifier">:href</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">&quot;/kill/usr2&quot;</span> }
20
- 127: <span class="ruby-identifier">li</span> { <span class="ruby-identifier">a</span> <span class="ruby-value str">&quot;Kill (KILL)&quot;</span>, <span class="ruby-identifier">:href</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">&quot;/kill/kill&quot;</span> }
21
- 128: <span class="ruby-keyword kw">end</span>
22
- 129: <span class="ruby-keyword kw">else</span>
23
- 130: <span class="ruby-identifier">p</span> { <span class="ruby-value str">&quot;Mongrel does not appear to be running (no PID file at #$PID_FILE).&quot;</span> }
24
- 131: <span class="ruby-keyword kw">end</span>
25
- 132: <span class="ruby-keyword kw">end</span></pre>
26
- </body>
27
- </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>logs (Configure::Views)</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
- </head>
12
- <body class="standalone-code">
13
- <pre> <span class="ruby-comment cmt"># File lib/mongrel_config/app.rb, line 134</span>
14
- 134: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">logs</span>
15
- 135: <span class="ruby-identifier">div</span> <span class="ruby-keyword kw">do</span>
16
- 136: <span class="ruby-identifier">h2</span> { <span class="ruby-value str">&quot;Logs&quot;</span> }
17
- 137: <span class="ruby-identifier">table</span> <span class="ruby-keyword kw">do</span>
18
- 138: <span class="ruby-identifier">tr</span> <span class="ruby-keyword kw">do</span>
19
- 139: <span class="ruby-identifier">th</span> { <span class="ruby-value str">&quot;File&quot;</span>}; <span class="ruby-identifier">th</span> { <span class="ruby-value str">&quot;Bytes&quot;</span> }; <span class="ruby-identifier">th</span> { <span class="ruby-value str">&quot;Last Modified&quot;</span> }
20
- 140: <span class="ruby-keyword kw">end</span>
21
- 141: <span class="ruby-ivar">@log_files</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">file</span><span class="ruby-operator">|</span>
22
- 142: <span class="ruby-identifier">tr</span> <span class="ruby-keyword kw">do</span>
23
- 143: <span class="ruby-identifier">td</span> { <span class="ruby-identifier">a</span> <span class="ruby-identifier">file</span>, <span class="ruby-identifier">:href</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-node">&quot;../#{file}&quot;</span> }
24
- 144: <span class="ruby-identifier">td</span> { <span class="ruby-constant">File</span>.<span class="ruby-identifier">size</span> <span class="ruby-identifier">file</span> }
25
- 145: <span class="ruby-identifier">td</span> { <span class="ruby-constant">File</span>.<span class="ruby-identifier">mtime</span> <span class="ruby-identifier">file</span> }
26
- 146: <span class="ruby-keyword kw">end</span>
27
- 147: <span class="ruby-keyword kw">end</span>
28
- 148: <span class="ruby-keyword kw">end</span>
29
- 149: <span class="ruby-keyword kw">end</span>
30
- 150: <span class="ruby-keyword kw">end</span></pre>
31
- </body>
32
- </html>
@@ -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>_running? (Configure::Views)</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
- </head>
12
- <body class="standalone-code">
13
- <pre> <span class="ruby-comment cmt"># File lib/mongrel_config/app.rb, line 152</span>
14
- 152: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">_running?</span>
15
- 153: <span class="ruby-constant">File</span>.<span class="ruby-identifier">exist?</span> <span class="ruby-identifier">$PID_FILE</span>
16
- 154: <span class="ruby-keyword kw">end</span></pre>
17
- </body>
18
- </html>
@@ -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>_pid (Configure::Views)</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
- </head>
12
- <body class="standalone-code">
13
- <pre> <span class="ruby-comment cmt"># File lib/mongrel_config/app.rb, line 156</span>
14
- 156: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">_pid</span>
15
- 157: <span class="ruby-identifier">open</span>(<span class="ruby-identifier">$PID_FILE</span>) {<span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span> <span class="ruby-identifier">f</span>.<span class="ruby-identifier">read</span> } <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">_running?</span>
16
- 158: <span class="ruby-keyword kw">end</span></pre>
17
- </body>
18
- </html>
@@ -1,29 +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>layout (Configure::Views)</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
- </head>
12
- <body class="standalone-code">
13
- <pre> <span class="ruby-comment cmt"># File lib/mongrel_config/win32_app.rb, line 130</span>
14
- 130: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">layout</span>
15
- 131: <span class="ruby-identifier">links</span> = [
16
- 132: [<span class="ruby-value str">&quot;/config&quot;</span>, <span class="ruby-value str">&quot;Status&quot;</span>],
17
- 133: [<span class="ruby-value str">&quot;/config/install&quot;</span>, <span class="ruby-value str">&quot;Install&quot;</span>],
18
- 134: [<span class="ruby-value str">&quot;/config/logs&quot;</span>, <span class="ruby-value str">&quot;Logs&quot;</span>]
19
- 135: ]
20
- 136: <span class="ruby-identifier">body_content</span> = <span class="ruby-keyword kw">yield</span>
21
- 137: <span class="ruby-identifier">currently_running</span> = <span class="ruby-identifier">_running_procs</span>
22
- 138:
23
- 139: <span class="ruby-identifier">open</span>(<span class="ruby-constant">GemPlugin</span><span class="ruby-operator">::</span><span class="ruby-constant">Manager</span>.<span class="ruby-identifier">instance</span>.<span class="ruby-identifier">resource</span>(<span class="ruby-value str">&quot;mongrel_config&quot;</span>, <span class="ruby-value str">&quot;/index_win32.html&quot;</span>)) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span>
24
- 140: <span class="ruby-identifier">template</span> = <span class="ruby-constant">ERB</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">f</span>.<span class="ruby-identifier">read</span>)
25
- 141: <span class="ruby-keyword kw">self</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">template</span>.<span class="ruby-identifier">result</span>(<span class="ruby-identifier">binding</span>)
26
- 142: <span class="ruby-keyword kw">end</span>
27
- 143: <span class="ruby-keyword kw">end</span></pre>
28
- </body>
29
- </html>
@@ -1,42 +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>list (Configure::Views)</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
- </head>
12
- <body class="standalone-code">
13
- <pre> <span class="ruby-comment cmt"># File lib/mongrel_config/win32_app.rb, line 146</span>
14
- 146: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">list</span>
15
- 147: <span class="ruby-identifier">div</span> <span class="ruby-identifier">:id=</span><span class="ruby-operator">&gt;</span><span class="ruby-value str">&quot;viewport&quot;</span> <span class="ruby-keyword kw">do</span>
16
- 148: <span class="ruby-identifier">table</span> <span class="ruby-keyword kw">do</span>
17
- 149: <span class="ruby-identifier">tr</span> { <span class="ruby-identifier">th</span> { <span class="ruby-value str">&quot;Service&quot;</span>}; <span class="ruby-identifier">th</span> { <span class="ruby-value str">&quot;Status&quot;</span>}; <span class="ruby-identifier">th</span> { <span class="ruby-value str">&quot;Control&quot;</span> }; <span class="ruby-identifier">th</span> { <span class="ruby-value str">&quot;Delete&quot;</span> } }
18
- 150: <span class="ruby-ivar">@services</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">s</span><span class="ruby-operator">|</span>
19
- 151: <span class="ruby-identifier">status</span> = <span class="ruby-constant">W32Support</span>.<span class="ruby-identifier">status</span>(<span class="ruby-identifier">s</span>.<span class="ruby-identifier">service_name</span>)
20
- 152: <span class="ruby-identifier">tr</span> {
21
- 153: <span class="ruby-identifier">td</span> { <span class="ruby-identifier">a</span>(<span class="ruby-identifier">s</span>.<span class="ruby-identifier">service_name</span>, <span class="ruby-identifier">:href</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-node">&quot;/info/#{s.service_name}&quot;</span>) }
22
- 154: <span class="ruby-identifier">td</span> { <span class="ruby-identifier">status</span>.<span class="ruby-identifier">capitalize</span> }
23
- 155: <span class="ruby-identifier">td</span> {
24
- 156: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">status</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/stopped/</span>
25
- 157: <span class="ruby-identifier">a</span>(<span class="ruby-value str">&quot;start&quot;</span>,<span class="ruby-identifier">:href</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-node">&quot;/start/#{s.service_name}&quot;</span>)
26
- 158: <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">status</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/running/</span>
27
- 159: <span class="ruby-identifier">a</span>(<span class="ruby-value str">&quot;stop&quot;</span>,<span class="ruby-identifier">:href</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-node">&quot;/stop/#{s.service_name}&quot;</span>)
28
- 160: <span class="ruby-keyword kw">else</span>
29
- 161: <span class="ruby-identifier">b</span> { <span class="ruby-value str">&quot;in progress&quot;</span> }
30
- 162: <span class="ruby-keyword kw">end</span>
31
- 163: }
32
- 164: <span class="ruby-identifier">td</span> {
33
- 165: <span class="ruby-identifier">a</span>(<span class="ruby-value str">&quot;delete!&quot;</span>,<span class="ruby-identifier">:href</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-node">&quot;/delete/#{s.service_name}&quot;</span>,
34
- 166: <span class="ruby-identifier">:onclick=</span><span class="ruby-operator">&gt;</span><span class="ruby-node">&quot;return confirm('Delete #{s.service_name}?') == '1'&quot;</span>)
35
- 167: }
36
- 168: }
37
- 169: <span class="ruby-keyword kw">end</span>
38
- 170: <span class="ruby-keyword kw">end</span>
39
- 171: <span class="ruby-keyword kw">end</span>
40
- 172: <span class="ruby-keyword kw">end</span></pre>
41
- </body>
42
- </html>
@@ -1,34 +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>info (Configure::Views)</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
- </head>
12
- <body class="standalone-code">
13
- <pre> <span class="ruby-comment cmt"># File lib/mongrel_config/win32_app.rb, line 175</span>
14
- 175: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">info</span>
15
- 176: <span class="ruby-identifier">div</span> <span class="ruby-identifier">:id=</span><span class="ruby-operator">&gt;</span><span class="ruby-value str">&quot;viewport&quot;</span> <span class="ruby-keyword kw">do</span>
16
- 177: <span class="ruby-ivar">@services</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">s</span><span class="ruby-operator">|</span>
17
- 178:
18
- 179: <span class="ruby-identifier">h2</span> { <span class="ruby-node">&quot;#{s.service_name} service information&quot;</span> }
19
- 180: <span class="ruby-identifier">table</span> <span class="ruby-keyword kw">do</span>
20
- 181: <span class="ruby-identifier">tr</span> { <span class="ruby-identifier">th</span> {<span class="ruby-value str">&quot;Attribute&quot;</span>}; <span class="ruby-identifier">th</span> {<span class="ruby-value str">&quot;Value&quot;</span>} }
21
- 182:
22
- 183: <span class="ruby-identifier">s</span>.<span class="ruby-identifier">each_pair</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">memb</span>,<span class="ruby-identifier">obj</span><span class="ruby-operator">|</span>
23
- 184: <span class="ruby-identifier">name</span> = <span class="ruby-identifier">memb</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">tr</span>(<span class="ruby-value str">&quot;_&quot;</span>,<span class="ruby-value str">&quot; &quot;</span>).<span class="ruby-identifier">capitalize</span>
24
- 185: <span class="ruby-identifier">tr</span> {
25
- 186: <span class="ruby-identifier">td</span> { <span class="ruby-identifier">b</span> { <span class="ruby-node">&quot;#{name}: &quot;</span> } }
26
- 187: <span class="ruby-identifier">td</span> { <span class="ruby-identifier">obj</span>.<span class="ruby-identifier">inspect</span> }
27
- 188: }
28
- 189: <span class="ruby-keyword kw">end</span>
29
- 190: <span class="ruby-keyword kw">end</span>
30
- 191: <span class="ruby-keyword kw">end</span>
31
- 192: <span class="ruby-keyword kw">end</span>
32
- 193: <span class="ruby-keyword kw">end</span></pre>
33
- </body>
34
- </html>
@@ -1,25 +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>service_logs (Configure::Views)</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
- </head>
12
- <body class="standalone-code">
13
- <pre> <span class="ruby-comment cmt"># File lib/mongrel_config/win32_app.rb, line 195</span>
14
- 195: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">service_logs</span>
15
- 196: <span class="ruby-identifier">h2</span> { <span class="ruby-value str">&quot;Latest Service Activity Logs&quot;</span> }
16
- 197: <span class="ruby-identifier">a</span>(<span class="ruby-value str">&quot;[clear logs]&quot;</span>, <span class="ruby-identifier">:href</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">&quot;/clear_logs&quot;</span>)
17
- 198:
18
- 199: <span class="ruby-identifier">div</span> <span class="ruby-identifier">:id=</span><span class="ruby-operator">&gt;</span><span class="ruby-value str">&quot;viewport&quot;</span> <span class="ruby-keyword kw">do</span>
19
- 200: <span class="ruby-identifier">pre</span> <span class="ruby-identifier">:style=</span><span class="ruby-operator">&gt;</span><span class="ruby-value str">&quot;font-size: 10pt;&quot;</span> <span class="ruby-keyword kw">do</span>
20
- 201: <span class="ruby-keyword kw">self</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">$service_logs</span>
21
- 202: <span class="ruby-keyword kw">end</span>
22
- 203: <span class="ruby-keyword kw">end</span>
23
- 204: <span class="ruby-keyword kw">end</span></pre>
24
- </body>
25
- </html>
@@ -1,35 +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>install_form (Configure::Views)</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
- </head>
12
- <body class="standalone-code">
13
- <pre> <span class="ruby-comment cmt"># File lib/mongrel_config/win32_app.rb, line 206</span>
14
- 206: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">install_form</span>
15
- 207: <span class="ruby-identifier">div</span> <span class="ruby-keyword kw">do</span>
16
- 208: <span class="ruby-identifier">h2</span> { <span class="ruby-value str">&quot;Install New Mongrel Service&quot;</span> }
17
- 209: <span class="ruby-identifier">p</span> { <span class="ruby-value str">&quot;Items with an * are mandatory. Leave an item blank to not specify it.&quot;</span> }
18
- 210: <span class="ruby-identifier">form</span> <span class="ruby-identifier">:action=</span><span class="ruby-operator">&gt;</span><span class="ruby-value str">&quot;/install&quot;</span>, <span class="ruby-identifier">:method=</span><span class="ruby-operator">&gt;</span><span class="ruby-value str">&quot;POST&quot;</span> <span class="ruby-keyword kw">do</span>
19
- 211: <span class="ruby-identifier">b</span> { <span class="ruby-value str">&quot;* Service Name: &quot;</span>}; <span class="ruby-identifier">input</span> <span class="ruby-identifier">:name</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">&quot;service_name&quot;</span>; <span class="ruby-identifier">br</span>
20
- 212: <span class="ruby-identifier">b</span> { <span class="ruby-value str">&quot;* Root: &quot;</span>}; <span class="ruby-identifier">input</span> <span class="ruby-identifier">:name</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">&quot;root&quot;</span>; <span class="ruby-identifier">br</span>
21
- 213: <span class="ruby-identifier">b</span> { <span class="ruby-value str">&quot;* Environment: &quot;</span>}; <span class="ruby-identifier">input</span> <span class="ruby-identifier">:name</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">&quot;environment&quot;</span>, <span class="ruby-identifier">:value</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">&quot;development&quot;</span>; <span class="ruby-identifier">br</span>
22
- 214: <span class="ruby-identifier">b</span> { <span class="ruby-value str">&quot;*Address: &quot;</span>}; <span class="ruby-identifier">input</span> <span class="ruby-identifier">:name</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">&quot;address&quot;</span>, <span class="ruby-identifier">:value</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">&quot;0.0.0.0&quot;</span>; <span class="ruby-identifier">br</span>
23
- 215: <span class="ruby-identifier">b</span> { <span class="ruby-value str">&quot;*Port: &quot;</span>}; <span class="ruby-identifier">input</span> <span class="ruby-identifier">:name</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">&quot;port&quot;</span>, <span class="ruby-identifier">:value</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">&quot;4000&quot;</span>, <span class="ruby-identifier">:size</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value">6</span>; <span class="ruby-identifier">br</span>
24
- 216: <span class="ruby-identifier">b</span> { <span class="ruby-value str">&quot;Display Name: &quot;</span>}; <span class="ruby-identifier">input</span> <span class="ruby-identifier">:name</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">&quot;display_name&quot;</span>; <span class="ruby-identifier">br</span>
25
- 217: <span class="ruby-identifier">b</span> { <span class="ruby-value str">&quot;MIME Map File: &quot;</span>}; <span class="ruby-identifier">input</span> <span class="ruby-identifier">:name</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">&quot;mime&quot;</span>; <span class="ruby-identifier">br</span>
26
- 218: <span class="ruby-identifier">b</span> { <span class="ruby-value str">&quot;Number Processor Threads: &quot;</span>}; <span class="ruby-identifier">input</span> <span class="ruby-identifier">:name</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">&quot;num_procs&quot;</span>, <span class="ruby-identifier">:size</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value">3</span>; <span class="ruby-identifier">br</span>
27
- 219: <span class="ruby-identifier">b</span> { <span class="ruby-value str">&quot;Request Timeout: &quot;</span>}; <span class="ruby-identifier">input</span> <span class="ruby-identifier">:name</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">&quot;timeout&quot;</span>, <span class="ruby-identifier">:size</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value">3</span>; <span class="ruby-identifier">br</span>
28
- 220: <span class="ruby-identifier">b</span> { <span class="ruby-value str">&quot;Assigned CPU: &quot;</span> }; <span class="ruby-identifier">input</span> <span class="ruby-identifier">:name</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">&quot;cpu&quot;</span>, <span class="ruby-identifier">:size</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value">2</span>; <span class="ruby-identifier">br</span>
29
- 221:
30
- 222: <span class="ruby-identifier">p</span> { <span class="ruby-identifier">input</span> <span class="ruby-identifier">:type=</span><span class="ruby-operator">&gt;</span><span class="ruby-value str">&quot;submit&quot;</span>, <span class="ruby-identifier">:value</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">&quot;INSTALL&quot;</span> }
31
- 223: <span class="ruby-keyword kw">end</span>
32
- 224: <span class="ruby-keyword kw">end</span>
33
- 225: <span class="ruby-keyword kw">end</span></pre>
34
- </body>
35
- </html>
@@ -1,23 +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>install_result (Configure::Views)</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
- </head>
12
- <body class="standalone-code">
13
- <pre> <span class="ruby-comment cmt"># File lib/mongrel_config/win32_app.rb, line 228</span>
14
- 228: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">install_result</span>
15
- 229: <span class="ruby-identifier">div</span> <span class="ruby-identifier">:id=</span><span class="ruby-operator">&gt;</span><span class="ruby-value str">&quot;viewport&quot;</span> <span class="ruby-keyword kw">do</span>
16
- 230: <span class="ruby-identifier">h2</span> { <span class="ruby-value str">&quot;Install Results&quot;</span>}
17
- 231: <span class="ruby-identifier">pre</span> <span class="ruby-keyword kw">do</span>
18
- 232: <span class="ruby-keyword kw">self</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-ivar">@result</span>
19
- 233: <span class="ruby-keyword kw">end</span>
20
- 234: <span class="ruby-keyword kw">end</span>
21
- 235: <span class="ruby-keyword kw">end</span></pre>
22
- </body>
23
- </html>
@@ -1,20 +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>_running_procs (Configure::Views)</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
- </head>
12
- <body class="standalone-code">
13
- <pre> <span class="ruby-comment cmt"># File lib/mongrel_config/win32_app.rb, line 237</span>
14
- 237: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">_running_procs</span>
15
- 238: <span class="ruby-identifier">running</span> = []
16
- 239: <span class="ruby-constant">W32Support</span>.<span class="ruby-identifier">list</span>.<span class="ruby-identifier">each</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">s</span><span class="ruby-operator">|</span> <span class="ruby-identifier">running</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">s</span>.<span class="ruby-identifier">service_name</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">s</span>.<span class="ruby-identifier">current_state</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/running/</span>}
17
- 240: <span class="ruby-identifier">running</span>
18
- 241: <span class="ruby-keyword kw">end</span></pre>
19
- </body>
20
- </html>
@@ -1,258 +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>Module: W32Support</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
- <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
12
- <script type="text/javascript">
13
- // <![CDATA[
14
-
15
- function popupCode( url ) {
16
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
- }
18
-
19
- function toggleCode( id ) {
20
- if ( document.getElementById )
21
- elem = document.getElementById( id );
22
- else if ( document.all )
23
- elem = eval( "document.all." + id );
24
- else
25
- return false;
26
-
27
- elemStyle = elem.style;
28
-
29
- if ( elemStyle.display != "block" ) {
30
- elemStyle.display = "block"
31
- } else {
32
- elemStyle.display = "none"
33
- }
34
-
35
- return true;
36
- }
37
-
38
- // Make codeblocks hidden by default
39
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
-
41
- // ]]>
42
- </script>
43
-
44
- </head>
45
- <body>
46
-
47
-
48
-
49
- <div id="classHeader">
50
- <table class="header-table">
51
- <tr class="top-aligned-row">
52
- <td><strong>Module</strong></td>
53
- <td class="class-name-in-header">W32Support</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_rb.html">
59
- lib/mongrel_config/win32.rb
60
- </a>
61
- <br />
62
- </td>
63
- </tr>
64
-
65
- </table>
66
- </div>
67
- <!-- banner header -->
68
-
69
- <div id="bodyContent">
70
-
71
-
72
-
73
- <div id="contextContent">
74
-
75
- <div id="description">
76
- <p>
77
- Simply abstracts the common stuff that the config tool needs to do when
78
- dealing with Win32. It is a very thin wrapper which may expand later.
79
- </p>
80
-
81
- </div>
82
-
83
-
84
- </div>
85
-
86
- <div id="method-list">
87
- <h3 class="section-bar">Methods</h3>
88
-
89
- <div class="name-list">
90
- <a href="#M000010">delete</a>&nbsp;&nbsp;
91
- <a href="#M000005">display</a>&nbsp;&nbsp;
92
- <a href="#M000006">do_and_wait</a>&nbsp;&nbsp;
93
- <a href="#M000004">list</a>&nbsp;&nbsp;
94
- <a href="#M000007">start</a>&nbsp;&nbsp;
95
- <a href="#M000009">status</a>&nbsp;&nbsp;
96
- <a href="#M000008">stop</a>&nbsp;&nbsp;
97
- </div>
98
- </div>
99
-
100
- </div>
101
-
102
-
103
- <!-- if includes -->
104
-
105
- <div id="section">
106
-
107
-
108
-
109
-
110
-
111
-
112
-
113
-
114
- <!-- if method_list -->
115
- <div id="methods">
116
- <h3 class="section-bar">Public Class methods</h3>
117
-
118
- <div id="method-M000010" class="method-detail">
119
- <a name="M000010"></a>
120
-
121
- <div class="method-heading">
122
- <a href="W32Support.src/M000010.html" target="Code" class="method-signature"
123
- onclick="popupCode('W32Support.src/M000010.html');return false;">
124
- <span class="method-name">delete</span><span class="method-args">(service_name) {|status if block_given?| ...}</span>
125
- </a>
126
- </div>
127
-
128
- <div class="method-description">
129
- <p>
130
- Deletes the service from the system. It first tries to stop the service,
131
- and if you pass in a block it will call it while the service is being
132
- stopped.
133
- </p>
134
- </div>
135
- </div>
136
-
137
- <div id="method-M000005" class="method-detail">
138
- <a name="M000005"></a>
139
-
140
- <div class="method-heading">
141
- <a href="W32Support.src/M000005.html" target="Code" class="method-signature"
142
- onclick="popupCode('W32Support.src/M000005.html');return false;">
143
- <span class="method-name">display</span><span class="method-args">(name)</span>
144
- </a>
145
- </div>
146
-
147
- <div class="method-description">
148
- <p>
149
- Just gets the display name of the service.
150
- </p>
151
- </div>
152
- </div>
153
-
154
- <div id="method-M000006" class="method-detail">
155
- <a name="M000006"></a>
156
-
157
- <div class="method-heading">
158
- <a href="W32Support.src/M000006.html" target="Code" class="method-signature"
159
- onclick="popupCode('W32Support.src/M000006.html');return false;">
160
- <span class="method-name">do_and_wait</span><span class="method-args">(service_name, operation, wait_for) {|status| ...}</span>
161
- </a>
162
- </div>
163
-
164
- <div class="method-description">
165
- <p>
166
- Performs one operations (like :start or :start) which need to be
167
- &quot;monitored&quot; until they&#8217;re done. The wait_for parameter
168
- should be a regex for the content of the status like /running/ or /stopped/
169
- </p>
170
- </div>
171
- </div>
172
-
173
- <div id="method-M000004" class="method-detail">
174
- <a name="M000004"></a>
175
-
176
- <div class="method-heading">
177
- <a href="W32Support.src/M000004.html" target="Code" class="method-signature"
178
- onclick="popupCode('W32Support.src/M000004.html');return false;">
179
- <span class="method-name">list</span><span class="method-args">()</span>
180
- </a>
181
- </div>
182
-
183
- <div class="method-description">
184
- <p>
185
- Lists all of the services that have &quot;mongrel&quot; in the
186
- binary_path_name of the service. This detects the mongrel services.
187
- </p>
188
- </div>
189
- </div>
190
-
191
- <div id="method-M000007" class="method-detail">
192
- <a name="M000007"></a>
193
-
194
- <div class="method-heading">
195
- <a href="W32Support.src/M000007.html" target="Code" class="method-signature"
196
- onclick="popupCode('W32Support.src/M000007.html');return false;">
197
- <span class="method-name">start</span><span class="method-args">(service_name) {|status| ...}</span>
198
- </a>
199
- </div>
200
-
201
- <div class="method-description">
202
- <p>
203
- Starts the requested service and calls a passed in block until the service
204
- is done. You should sleep for a short period until it&#8217;s done or
205
- there&#8217;s an exception.
206
- </p>
207
- </div>
208
- </div>
209
-
210
- <div id="method-M000009" class="method-detail">
211
- <a name="M000009"></a>
212
-
213
- <div class="method-heading">
214
- <a href="W32Support.src/M000009.html" target="Code" class="method-signature"
215
- onclick="popupCode('W32Support.src/M000009.html');return false;">
216
- <span class="method-name">status</span><span class="method-args">(service_name)</span>
217
- </a>
218
- </div>
219
-
220
- <div class="method-description">
221
- <p>
222
- Returns the current_state field of the service.
223
- </p>
224
- </div>
225
- </div>
226
-
227
- <div id="method-M000008" class="method-detail">
228
- <a name="M000008"></a>
229
-
230
- <div class="method-heading">
231
- <a href="W32Support.src/M000008.html" target="Code" class="method-signature"
232
- onclick="popupCode('W32Support.src/M000008.html');return false;">
233
- <span class="method-name">stop</span><span class="method-args">(service_name) {|status| ...}</span>
234
- </a>
235
- </div>
236
-
237
- <div class="method-description">
238
- <p>
239
- Stops the service. Just like <a
240
- href="W32Support.html#M000007">W32Support.start</a> is will call a block
241
- while it checks for the service to actually stop.
242
- </p>
243
- </div>
244
- </div>
245
-
246
-
247
- </div>
248
-
249
-
250
- </div>
251
-
252
-
253
- <div id="validator-badges">
254
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
255
- </div>
256
-
257
- </body>
258
- </html>