Sha256: 949a69a34dc1da6729972c7ae267f875a0723dc05fff28d1d59cac2806eadff8
Contents?: true
Size: 1.96 KB
Versions: 2
Compression:
Stored size: 1.96 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>web_server (TC_TarImporter)</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 test/test_import_tar.rb, line 49</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">web_server</span> <span class="ruby-identifier">s</span> = <span class="ruby-constant">HTTPServer</span>.<span class="ruby-identifier">new</span> <span class="ruby-identifier">:Port</span> =<span class="ruby-operator">></span> <span class="ruby-value">2000</span>, <span class="ruby-identifier">:DocumentRoot</span> =<span class="ruby-operator">></span> <span class="ruby-constant">TestTools</span>.<span class="ruby-identifier">tempdir</span> <span class="ruby-identifier">s</span>.<span class="ruby-identifier">mount</span>(<span class="ruby-value str">"/files"</span>, <span class="ruby-constant">HTTPServlet</span><span class="ruby-operator">::</span><span class="ruby-constant">FileHandler</span>, <span class="ruby-constant">TestTools</span>.<span class="ruby-identifier">tempdir</span>) <span class="ruby-identifier">webrick</span> = <span class="ruby-constant">Thread</span>.<span class="ruby-identifier">new</span> { <span class="ruby-identifier">s</span>.<span class="ruby-identifier">start</span> } <span class="ruby-keyword kw">yield</span> <span class="ruby-keyword kw">ensure</span> <span class="ruby-identifier">s</span>.<span class="ruby-identifier">shutdown</span> <span class="ruby-identifier">webrick</span>.<span class="ruby-identifier">join</span> <span class="ruby-keyword kw">end</span></pre> </body> </html>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
autobuild-0.5.1 | doc/classes/TC_TarImporter.src/M000012.html |
autobuild-0.6 | doc/classes/TC_TarImporter.src/M000014.html |