Sha256: 7527bc9fe92c98268a3f9f2189ce3ec9751f2ce3fb6afaee80e7a5298e2fe122
Contents?: true
Size: 1.82 KB
Versions: 1
Compression:
Stored size: 1.82 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>delete (W32Support)</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.rb, line 71</span> 71: <span class="ruby-keyword kw">def</span> <span class="ruby-constant">W32Support</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">service_name</span>) 72: <span class="ruby-keyword kw">begin</span> 73: <span class="ruby-constant">W32Support</span>.<span class="ruby-identifier">stop</span>(<span class="ruby-identifier">service_name</span>) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">status</span><span class="ruby-operator">|</span> 74: <span class="ruby-keyword kw">yield</span> <span class="ruby-identifier">status</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">block_given?</span> 75: <span class="ruby-keyword kw">end</span> 76: <span class="ruby-keyword kw">rescue</span> 77: <span class="ruby-keyword kw">end</span> 78: 79: <span class="ruby-keyword kw">begin</span> 80: <span class="ruby-constant">Win32</span><span class="ruby-operator">::</span><span class="ruby-constant">Service</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">service_name</span>) 81: <span class="ruby-keyword kw">rescue</span> 82: <span class="ruby-keyword kw">end</span> 83: <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/W32Support.src/M000010.html |