Sha256: 1cd420c131c6c9c8361f82c769e948c7cac898d686021085b1986bee15017148
Contents?: true
Size: 1.84 KB
Versions: 1
Compression:
Stored size: 1.84 KB
Contents
<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>get (Configure::Controllers::Stop)</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" /> </head> <body class="standalone-code"> <pre> <span class="ruby-comment cmt"># File lib/mongrel_config/win32_app.rb, line 46</span> 46: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get</span>(<span class="ruby-identifier">service</span>) 47: <span class="ruby-identifier">runner</span> = <span class="ruby-constant">Thread</span>.<span class="ruby-identifier">new</span> <span class="ruby-keyword kw">do</span> 48: <span class="ruby-constant">W32Support</span>.<span class="ruby-identifier">stop</span>(<span class="ruby-identifier">service</span>) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">status</span><span class="ruby-operator">|</span> 49: <span class="ruby-identifier">$service_logs</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"Starting #{service}: #{status}\n"</span> 50: <span class="ruby-identifier">sleep</span> <span class="ruby-value">1</span> 51: <span class="ruby-keyword kw">end</span> 52: <span class="ruby-keyword kw">end</span> 53: 54: <span class="ruby-identifier">$service_group</span>.<span class="ruby-identifier">add</span>(<span class="ruby-identifier">runner</span>) 55: <span class="ruby-identifier">redirect</span> <span class="ruby-constant">Index</span> 56: <span class="ruby-keyword kw">end</span></pre> </body> </html>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mongrel_config-0.3 | doc/rdoc/classes/Configure/Controllers/Stop.src/M000031.html |