Sha256: 96df41bf63e19bb9849d4cca3cb69667163186f15a748bda3301603c5e6fbd6c
Contents?: true
Size: 1.85 KB
Versions: 3
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>run (Reap::Install)</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/reap/task/install.rb, line 21</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">run</span> <span class="ruby-identifier">exe</span> = <span class="ruby-node">%w{ setup.rb install.rb }</span>.<span class="ruby-identifier">find</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exists?</span>(<span class="ruby-identifier">f</span>) } <span class="ruby-identifier">raise</span> <span class="ruby-value str">"setup.rb or install.rb not found"</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">exe</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">nil</span> <span class="ruby-identifier">puts</span> <span class="ruby-node">"Reap is shelling out work to #{exe}..."</span> <span class="ruby-identifier">options</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">'-q'</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@quiet</span> <span class="ruby-identifier">c</span> = <span class="ruby-node">"sudo ruby #{exe} #{options.join(' ')}"</span> <span class="ruby-identifier">sh</span> <span class="ruby-identifier">c</span> <span class="ruby-keyword kw">end</span></pre> </body> </html>
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
reap-4.0 | web/rdoc/classes/Reap/Install.src/M000038.html |
reap-4.0.0 | web/rdoc/classes/Reap/Install.src/M000037.html |
reap-5.10.10 | web/rdoc/classes/Reap/Install.src/M000038.html |