Sha256: 54391d0d68c2d8604bc9a7e2148397a421d56402d3c0b2ef7dd229fccb2c9685

Contents?: true

Size: 1.85 KB

Versions: 1

Compression:

Stored size: 1.85 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::Start)</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 31</span>
31:       <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get</span>(<span class="ruby-identifier">service</span>)
32:         <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>
33:           <span class="ruby-constant">W32Support</span>.<span class="ruby-identifier">start</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>
34:             <span class="ruby-identifier">$service_logs</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;Starting #{service}: #{status}\n&quot;</span>
35:             <span class="ruby-identifier">sleep</span> <span class="ruby-value">1</span>
36:           <span class="ruby-keyword kw">end</span>
37:         <span class="ruby-keyword kw">end</span>
38: 
39:         <span class="ruby-identifier">$service_group</span>.<span class="ruby-identifier">add</span>(<span class="ruby-identifier">runner</span>)
40: 
41:         <span class="ruby-identifier">redirect</span> <span class="ruby-constant">Index</span>
42:       <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/Start.src/M000034.html