coverage/index.html in net-ssh-simple-1.6.4 vs coverage/index.html in net-ssh-simple-1.6.5
- old
+ new
@@ -12,31 +12,31 @@
<body>
<div id="loading">
<img src="./assets/0.7.1/loading.gif" alt="loading"/>
</div>
<div id="wrapper" style="display:none;">
- <div class="timestamp">Generated <abbr class="timeago" title="2013-12-08T10:30:04+01:00">2013-12-08T10:30:04+01:00</abbr></div>
+ <div class="timestamp">Generated <abbr class="timeago" title="2014-03-14T19:29:14+01:00">2014-03-14T19:29:14+01:00</abbr></div>
<ul class="group_tabs"></ul>
<div id="content">
<div class="file_list_container" id="AllFiles">
<h2>
<span class="group_name">All Files</span>
- (<span class="covered_percent"><span class="green">100.0%</span></span>
+ (<span class="covered_percent"><span class="green">98.8%</span></span>
covered at
<span class="covered_strength">
<span class="green">
- 84.6
+ 91.9
</span>
</span> hits/line)
</h2>
<a name="AllFiles"></a>
<div>
<b>1</b> files in total.
- <b>162</b> relevant lines.
- <span class="green"><b>162</b> lines covered</span> and
- <span class="red"><b>0</b> lines missed </span>
+ <b>166</b> relevant lines.
+ <span class="green"><b>164</b> lines covered</span> and
+ <span class="red"><b>2</b> lines missed </span>
</div>
<table class="file_list">
<thead>
<tr>
<th>File</th>
@@ -50,16 +50,16 @@
</thead>
<tbody>
<tr>
<td class="strong"><a href="#ebc1c40297fe09a20539f3d0e94180d9c9008e93" class="src_link" title="lib/net/ssh/simple.rb">lib/net/ssh/simple.rb</a></td>
- <td class="green strong">100.0 %</td>
- <td>738</td>
- <td>162</td>
- <td>162</td>
- <td>0</td>
- <td>84.6</td>
+ <td class="green strong">98.8 %</td>
+ <td>744</td>
+ <td>166</td>
+ <td>164</td>
+ <td>2</td>
+ <td>91.9</td>
</tr>
</tbody>
</table>
</div>
@@ -77,15 +77,15 @@
<div class="source_files">
<div class="source_table" id="ebc1c40297fe09a20539f3d0e94180d9c9008e93">
<div class="header">
<h3>lib/net/ssh/simple.rb</h3>
- <h4><span class="green">100.0 %</span> covered</h4>
+ <h4><span class="green">98.8 %</span> covered</h4>
<div>
- <b>162</b> relevant lines.
- <span class="green"><b>162</b> lines covered</span> and
- <span class="red"><b>0</b> lines missed.</span>
+ <b>166</b> relevant lines.
+ <span class="green"><b>164</b> lines covered</span> and
+ <span class="red"><b>2</b> lines missed.</span>
</div>
</div>
<pre>
<ol>
@@ -223,41 +223,41 @@
</li>
<li class="covered" data-hits="1" data-linenumber="23">
<span class="hits">1</span>
- <code class="ruby">require 'net/ssh/simple/version'</code>
+ <code class="ruby">require 'net/ssh/simple/version'</code>
</li>
<li class="covered" data-hits="1" data-linenumber="24">
<span class="hits">1</span>
- <code class="ruby">require 'blockenspiel'</code>
+ <code class="ruby">require 'blockenspiel'</code>
</li>
<li class="covered" data-hits="1" data-linenumber="25">
<span class="hits">1</span>
- <code class="ruby">require 'hashie/dash'</code>
+ <code class="ruby">require 'hashie/dash'</code>
</li>
<li class="covered" data-hits="1" data-linenumber="26">
<span class="hits">1</span>
- <code class="ruby">require 'timeout'</code>
+ <code class="ruby">require 'timeout'</code>
</li>
<li class="covered" data-hits="1" data-linenumber="27">
<span class="hits">1</span>
- <code class="ruby">require 'net/ssh'</code>
+ <code class="ruby">require 'net/ssh'</code>
</li>
<li class="covered" data-hits="1" data-linenumber="28">
<span class="hits">1</span>
- <code class="ruby">require 'net/scp'</code>
+ <code class="ruby">require 'net/scp'</code>
</li>
<li class="never" data-hits="" data-linenumber="29">
@@ -307,11 +307,11 @@
</li>
<li class="never" data-hits="" data-linenumber="37">
- <code class="ruby"> # r = ssh 'example1.com', 'echo "Hello World."'</code>
+ <code class="ruby"> # r = ssh 'example1.com', 'echo "Hello World."'</code>
</li>
<li class="never" data-hits="" data-linenumber="38">
@@ -331,17 +331,17 @@
</li>
<li class="never" data-hits="" data-linenumber="41">
- <code class="ruby"> # scp_put 'example2.com', '/tmp/local_foo', '/tmp/remote_bar'</code>
+ <code class="ruby"> # scp_put 'example2.com', '/tmp/local_foo', '/tmp/remote_bar'</code>
</li>
<li class="never" data-hits="" data-linenumber="42">
- <code class="ruby"> # scp_get 'example3.com', '/tmp/remote_foo', '/tmp/local_bar'</code>
+ <code class="ruby"> # scp_get 'example3.com', '/tmp/remote_foo', '/tmp/local_bar'</code>
</li>
<li class="never" data-hits="" data-linenumber="43">
@@ -373,17 +373,17 @@
</li>
<li class="never" data-hits="" data-linenumber="48">
- <code class="ruby"> # scp_put 'example1.com', '/tmp/local_foo', '/tmp/remote_bar'</code>
+ <code class="ruby"> # scp_put 'example1.com', '/tmp/local_foo', '/tmp/remote_bar'</code>
</li>
<li class="never" data-hits="" data-linenumber="49">
- <code class="ruby"> # ssh 'example3.com', 'echo "Hello World A."'</code>
+ <code class="ruby"> # ssh 'example3.com', 'echo "Hello World A."'</code>
</li>
<li class="never" data-hits="" data-linenumber="50">
@@ -397,17 +397,17 @@
</li>
<li class="never" data-hits="" data-linenumber="52">
- <code class="ruby"> # scp_get 'example6.com', '/tmp/remote_foo', '/tmp/local_bar'</code>
+ <code class="ruby"> # scp_get 'example6.com', '/tmp/remote_foo', '/tmp/local_bar'</code>
</li>
<li class="never" data-hits="" data-linenumber="53">
- <code class="ruby"> # ssh 'example7.com', 'echo "Hello World B."'</code>
+ <code class="ruby"> # ssh 'example7.com', 'echo "Hello World B."'</code>
</li>
<li class="never" data-hits="" data-linenumber="54">
@@ -469,23 +469,23 @@
</li>
<li class="never" data-hits="" data-linenumber="64">
- <code class="ruby"> # s.ssh 'example1.com', 'echo "Hello World."'</code>
+ <code class="ruby"> # s.ssh 'example1.com', 'echo "Hello World."'</code>
</li>
<li class="never" data-hits="" data-linenumber="65">
- <code class="ruby"> # s.scp_put 'example2.com', '/tmp/local_foo', '/tmp/remote_bar'</code>
+ <code class="ruby"> # s.scp_put 'example2.com', '/tmp/local_foo', '/tmp/remote_bar'</code>
</li>
<li class="never" data-hits="" data-linenumber="66">
- <code class="ruby"> # s.scp_get 'example3.com', '/tmp/remote_foo', '/tmp/local_bar'</code>
+ <code class="ruby"> # s.scp_get 'example3.com', '/tmp/remote_foo', '/tmp/local_bar'</code>
</li>
<li class="never" data-hits="" data-linenumber="67">
@@ -523,23 +523,23 @@
</li>
<li class="never" data-hits="" data-linenumber="73">
- <code class="ruby"> # Net::SSH::Simple.ssh 'example1.com', 'echo "Hello World."'</code>
+ <code class="ruby"> # Net::SSH::Simple.ssh 'example1.com', 'echo "Hello World."'</code>
</li>
<li class="never" data-hits="" data-linenumber="74">
- <code class="ruby"> # Net::SSH::Simple.scp_put 'example2.com', '/tmp/local_foo', '/tmp/remote_bar'</code>
+ <code class="ruby"> # Net::SSH::Simple.scp_put 'example2.com', '/tmp/local_foo', '/tmp/remote_bar'</code>
</li>
<li class="never" data-hits="" data-linenumber="75">
- <code class="ruby"> # Net::SSH::Simple.scp_get 'example3.com', '/tmp/remote_foo', '/tmp/local_bar'</code>
+ <code class="ruby"> # Net::SSH::Simple.scp_get 'example3.com', '/tmp/remote_foo', '/tmp/local_bar'</code>
</li>
<li class="never" data-hits="" data-linenumber="76">
@@ -571,17 +571,17 @@
</li>
<li class="never" data-hits="" data-linenumber="81">
- <code class="ruby"> # r = ssh 'example1.com', 'echo "Hello World."'</code>
+ <code class="ruby"> # r = ssh 'example1.com', 'echo "Hello World."'</code>
</li>
<li class="never" data-hits="" data-linenumber="82">
- <code class="ruby"> # if r.success and r.stdout == 'Hello World.'</code>
+ <code class="ruby"> # if r.success and r.stdout == 'Hello World.'</code>
</li>
<li class="never" data-hits="" data-linenumber="83">
@@ -601,11 +601,11 @@
</li>
<li class="never" data-hits="" data-linenumber="86">
- <code class="ruby"> # r = scp_put 'example2.com', '/tmp/local_foo', '/tmp/remote_bar'</code>
+ <code class="ruby"> # r = scp_put 'example2.com', '/tmp/local_foo', '/tmp/remote_bar'</code>
</li>
<li class="never" data-hits="" data-linenumber="87">
@@ -631,11 +631,11 @@
</li>
<li class="never" data-hits="" data-linenumber="91">
- <code class="ruby"> # r = scp_get 'example3.com', '/tmp/remote_foo', '/tmp/local_bar'</code>
+ <code class="ruby"> # r = scp_get 'example3.com', '/tmp/remote_foo', '/tmp/local_bar'</code>
</li>
<li class="never" data-hits="" data-linenumber="92">
@@ -751,23 +751,23 @@
</li>
<li class="never" data-hits="" data-linenumber="111">
- <code class="ruby"> # ssh 'example1.com', 'echo "Hello World."'</code>
+ <code class="ruby"> # ssh 'example1.com', 'echo "Hello World."'</code>
</li>
<li class="never" data-hits="" data-linenumber="112">
- <code class="ruby"> # scp_put 'example2.com', '/tmp/local_foo', '/tmp/remote_bar'</code>
+ <code class="ruby"> # scp_put 'example2.com', '/tmp/local_foo', '/tmp/remote_bar'</code>
</li>
<li class="never" data-hits="" data-linenumber="113">
- <code class="ruby"> # scp_get 'example3.com', '/tmp/remote_foo', '/tmp/local_bar'</code>
+ <code class="ruby"> # scp_get 'example3.com', '/tmp/remote_foo', '/tmp/local_bar'</code>
</li>
<li class="never" data-hits="" data-linenumber="114">
@@ -865,17 +865,17 @@
</li>
<li class="never" data-hits="" data-linenumber="130">
- <code class="ruby"> # r = s.ssh 'example1.com', 'echo "Hello World."'</code>
+ <code class="ruby"> # r = s.ssh 'example1.com', 'echo "Hello World."'</code>
</li>
<li class="never" data-hits="" data-linenumber="131">
- <code class="ruby"> # if r.success and r.stdout == 'Hello World.'</code>
+ <code class="ruby"> # if r.success and r.stdout == 'Hello World.'</code>
</li>
<li class="never" data-hits="" data-linenumber="132">
@@ -895,11 +895,11 @@
</li>
<li class="never" data-hits="" data-linenumber="135">
- <code class="ruby"> # r = s.scp_put 'example2.com', '/tmp/local_foo', '/tmp/remote_bar'</code>
+ <code class="ruby"> # r = s.scp_put 'example2.com', '/tmp/local_foo', '/tmp/remote_bar'</code>
</li>
<li class="never" data-hits="" data-linenumber="136">
@@ -925,11 +925,11 @@
</li>
<li class="never" data-hits="" data-linenumber="140">
- <code class="ruby"> # r = s.scp_get 'example3.com', '/tmp/remote_foo', '/tmp/local_bar'</code>
+ <code class="ruby"> # r = s.scp_get 'example3.com', '/tmp/remote_foo', '/tmp/local_bar'</code>
</li>
<li class="never" data-hits="" data-linenumber="141">
@@ -985,11 +985,11 @@
</li>
<li class="never" data-hits="" data-linenumber="150">
- <code class="ruby"> # s.close # don't forget the clean up!</code>
+ <code class="ruby"> # s.close # don't forget the clean up!</code>
</li>
<li class="never" data-hits="" data-linenumber="151">
@@ -1021,17 +1021,17 @@
</li>
<li class="never" data-hits="" data-linenumber="156">
- <code class="ruby"> # ssh('example1.com', 'echo "Hello World."',</code>
+ <code class="ruby"> # ssh('example1.com', 'echo "Hello World."',</code>
</li>
<li class="never" data-hits="" data-linenumber="157">
- <code class="ruby"> # {:user => 'tom', :password => 'jerry', :port => 1234})</code>
+ <code class="ruby"> # {:user => 'tom', :password => 'jerry', :port => 1234})</code>
</li>
<li class="never" data-hits="" data-linenumber="158">
@@ -1051,11 +1051,11 @@
</li>
<li class="never" data-hits="" data-linenumber="161">
- <code class="ruby"> # Net::SSH::Simple.sync({:user => 'tom', :port => 1234}) do</code>
+ <code class="ruby"> # Net::SSH::Simple.sync({:user => 'tom', :port => 1234}) do</code>
</li>
<li class="never" data-hits="" data-linenumber="162">
@@ -1063,17 +1063,17 @@
</li>
<li class="never" data-hits="" data-linenumber="163">
- <code class="ruby"> # ssh('example1.com', 'echo "Hello World."', {:password => 'jerry'})</code>
+ <code class="ruby"> # ssh('example1.com', 'echo "Hello World."', {:password => 'jerry'})</code>
</li>
<li class="never" data-hits="" data-linenumber="164">
- <code class="ruby"> # scp_put('example2.com', '/tmp/a', '/tmp/a', {:password => 's3cr3t'})</code>
+ <code class="ruby"> # scp_put('example2.com', '/tmp/a', '/tmp/a', {:password => 's3cr3t'})</code>
</li>
<li class="never" data-hits="" data-linenumber="165">
@@ -1105,11 +1105,11 @@
</li>
<li class="never" data-hits="" data-linenumber="170">
- <code class="ruby"> # scp_put 'example1.com', '/tmp/local_foo', '/tmp/remote_bar' do |sent, total|</code>
+ <code class="ruby"> # scp_put 'example1.com', '/tmp/local_foo', '/tmp/remote_bar' do |sent, total|</code>
</li>
<li class="never" data-hits="" data-linenumber="171">
@@ -1171,11 +1171,11 @@
</li>
<li class="never" data-hits="" data-linenumber="181">
- <code class="ruby"> # ssh('localhost', '/bin/sh') do |e,c,d|</code>
+ <code class="ruby"> # ssh('localhost', '/bin/sh') do |e,c,d|</code>
</li>
<li class="never" data-hits="" data-linenumber="182">
@@ -1219,23 +1219,23 @@
</li>
<li class="never" data-hits="" data-linenumber="189">
- <code class="ruby"> # c.send_data("echo 'hello stdout'\n")</code>
+ <code class="ruby"> # c.send_data("echo 'hello stdout'\n")</code>
</li>
<li class="never" data-hits="" data-linenumber="190">
- <code class="ruby"> # c.send_data("echo 'hello stderr' 1>&2\n")</code>
+ <code class="ruby"> # c.send_data("echo 'hello stderr' 1>&2\n")</code>
</li>
<li class="never" data-hits="" data-linenumber="191">
- <code class="ruby"> # # don't forget to eof when done feeding!</code>
+ <code class="ruby"> # # don't forget to eof when done feeding!</code>
</li>
<li class="never" data-hits="" data-linenumber="192">
@@ -1249,11 +1249,11 @@
</li>
<li class="never" data-hits="" data-linenumber="194">
- <code class="ruby"> # # :stdout is triggered when there's stdout data from remote.</code>
+ <code class="ruby"> # # :stdout is triggered when there's stdout data from remote.</code>
</li>
<li class="never" data-hits="" data-linenumber="195">
@@ -1279,11 +1279,11 @@
</li>
<li class="never" data-hits="" data-linenumber="199">
- <code class="ruby"> # (@buf ||= '') << d</code>
+ <code class="ruby"> # (@buf ||= '') << d</code>
</li>
<li class="never" data-hits="" data-linenumber="200">
@@ -1315,11 +1315,11 @@
</li>
<li class="never" data-hits="" data-linenumber="205">
- <code class="ruby"> # # :stderr is triggered when there's stderr data from remote.</code>
+ <code class="ruby"> # # :stderr is triggered when there's stderr data from remote.</code>
</li>
<li class="never" data-hits="" data-linenumber="206">
@@ -1345,11 +1345,11 @@
</li>
<li class="never" data-hits="" data-linenumber="210">
- <code class="ruby"> # (@buf ||= '') << d</code>
+ <code class="ruby"> # (@buf ||= '') << d</code>
</li>
<li class="never" data-hits="" data-linenumber="211">
@@ -1435,11 +1435,11 @@
</li>
<li class="never" data-hits="" data-linenumber="225">
- <code class="ruby"> # puts d # won't fire in this example, could be "TERM"</code>
+ <code class="ruby"> # puts d # won't fire in this example, could be "TERM"</code>
</li>
<li class="never" data-hits="" data-linenumber="226">
@@ -1525,17 +1525,17 @@
</li>
<li class="never" data-hits="" data-linenumber="240">
- <code class="ruby"> # puts r.stdout #=> ''</code>
+ <code class="ruby"> # puts r.stdout #=> ''</code>
</li>
<li class="never" data-hits="" data-linenumber="241">
- <code class="ruby"> # puts r.stderr #=> ''</code>
+ <code class="ruby"> # puts r.stderr #=> ''</code>
</li>
<li class="never" data-hits="" data-linenumber="242">
@@ -1645,11 +1645,11 @@
</li>
<li class="never" data-hits="" data-linenumber="260">
- <code class="ruby"> # Net::SSH::Simple.ssh('localhost', 'echo Hello').class #=> Net::SSH::Simple::Result</code>
+ <code class="ruby"> # Net::SSH::Simple.ssh('localhost', 'echo Hello').class #=> Net::SSH::Simple::Result</code>
</li>
<li class="never" data-hits="" data-linenumber="261">
@@ -1663,11 +1663,11 @@
</li>
<li class="never" data-hits="" data-linenumber="263">
- <code class="ruby"> # Net::SSH::Simple.ssh('localhost', 'echo Hello').stdout #=> "Hello"</code>
+ <code class="ruby"> # Net::SSH::Simple.ssh('localhost', 'echo Hello').stdout #=> "Hello"</code>
</li>
<li class="never" data-hits="" data-linenumber="264">
@@ -1771,11 +1771,11 @@
</li>
<li class="never" data-hits="" data-linenumber="281">
- <code class="ruby"> # Net::SSH::Simple.scp_put('localhost', '/tmp/local_foo', '/tmp/remote_bar')</code>
+ <code class="ruby"> # Net::SSH::Simple.scp_put('localhost', '/tmp/local_foo', '/tmp/remote_bar')</code>
</li>
<li class="never" data-hits="" data-linenumber="282">
@@ -1795,11 +1795,11 @@
</li>
<li class="never" data-hits="" data-linenumber="285">
- <code class="ruby"> # Net::SSH::Simple.scp_put('localhost', '/tmp/local_foo', '/tmp/remote_bar') do |sent, total|</code>
+ <code class="ruby"> # Net::SSH::Simple.scp_put('localhost', '/tmp/local_foo', '/tmp/remote_bar') do |sent, total|</code>
</li>
<li class="never" data-hits="" data-linenumber="286">
@@ -1915,11 +1915,11 @@
</li>
<li class="never" data-hits="" data-linenumber="305">
- <code class="ruby"> # Net::SSH::Simple.scp_get('localhost', '/tmp/remote_foo', '/tmp/local_bar')</code>
+ <code class="ruby"> # Net::SSH::Simple.scp_get('localhost', '/tmp/remote_foo', '/tmp/local_bar')</code>
</li>
<li class="never" data-hits="" data-linenumber="306">
@@ -1939,11 +1939,11 @@
</li>
<li class="never" data-hits="" data-linenumber="309">
- <code class="ruby"> # Net::SSH::Simple.scp_get('localhost', '/tmp/remote_foo', '/tmp/local_bar') do |sent, total|</code>
+ <code class="ruby"> # Net::SSH::Simple.scp_get('localhost', '/tmp/remote_foo', '/tmp/local_bar') do |sent, total|</code>
</li>
<li class="never" data-hits="" data-linenumber="310">
@@ -2029,11 +2029,11 @@
</li>
<li class="never" data-hits="" data-linenumber="324">
- <code class="ruby"> # </code>
+ <code class="ruby"> #</code>
</li>
<li class="never" data-hits="" data-linenumber="325">
@@ -2155,11 +2155,11 @@
</li>
<li class="never" data-hits="" data-linenumber="345">
- <code class="ruby"> # </code>
+ <code class="ruby"> #</code>
</li>
<li class="never" data-hits="" data-linenumber="346">
@@ -2431,17 +2431,17 @@
</li>
<li class="never" data-hits="" data-linenumber="391">
- <code class="ruby"> # @option opts [String/Array] :global_known_hosts_file </code>
+ <code class="ruby"> # @option opts [String/Array] :global_known_hosts_file</code>
</li>
<li class="never" data-hits="" data-linenumber="392">
- <code class="ruby"> # (['/etc/ssh/known_hosts','/etc/ssh/known_hosts2'])</code>
+ <code class="ruby"> # (['/etc/ssh/known_hosts','/etc/ssh/known_hosts2'])</code>
</li>
<li class="never" data-hits="" data-linenumber="393">
@@ -2737,11 +2737,11 @@
</li>
<li class="never" data-hits="" data-linenumber="442">
- <code class="ruby"> # a hash of key/value pairs to add to the new connection's properties</code>
+ <code class="ruby"> # a hash of key/value pairs to add to the new connection's properties</code>
</li>
<li class="never" data-hits="" data-linenumber="443">
@@ -2941,11 +2941,11 @@
</li>
<li class="never" data-hits="" data-linenumber="476">
- <code class="ruby"> # (['~/.ssh/known_hosts, ~/.ssh/known_hosts2'])</code>
+ <code class="ruby"> # (['~/.ssh/known_hosts, ~/.ssh/known_hosts2'])</code>
</li>
<li class="never" data-hits="" data-linenumber="477">
@@ -3001,17 +3001,17 @@
</li>
<li class="never" data-hits="" data-linenumber="486">
- <code class="ruby"> # @see http://net-ssh.github.com/ssh/v2/api/classes/Net/SSH.html#M000002 </code>
+ <code class="ruby"> # @see http://net-ssh.github.com/ssh/v2/api/classes/Net/SSH.html#M000002</code>
</li>
<li class="never" data-hits="" data-linenumber="487">
- <code class="ruby"> # Net::SSH documentation for the 'opts'-hash</code>
+ <code class="ruby"> # Net::SSH documentation for the 'opts'-hash</code>
</li>
<li class="covered" data-hits="1" data-linenumber="488">
<span class="hits">1</span>
@@ -3043,17 +3043,17 @@
</li>
<li class="never" data-hits="" data-linenumber="493">
- <code class="ruby"> :last_event_at => Time.new, :opts => opts, :stdout => '', :stderr => '',</code>
+ <code class="ruby"> :last_event_at => Time.new, :opts => opts, :stdout => '', :stderr => '',</code>
</li>
<li class="never" data-hits="" data-linenumber="494">
- <code class="ruby"> :success => nil </code>
+ <code class="ruby"> :success => nil</code>
</li>
<li class="never" data-hits="" data-linenumber="495">
@@ -3088,24 +3088,24 @@
<span class="hits">67</span>
<code class="ruby"> ch.on_data do |c, data|</code>
</li>
- <li class="covered" data-hits="571" data-linenumber="501">
- <span class="hits">571</span>
+ <li class="covered" data-hits="603" data-linenumber="501">
+ <span class="hits">603</span>
<code class="ruby"> @result[:last_event_at] = Time.new</code>
</li>
- <li class="covered" data-hits="571" data-linenumber="502">
- <span class="hits">571</span>
+ <li class="covered" data-hits="603" data-linenumber="502">
+ <span class="hits">603</span>
<code class="ruby"> r = block.call(:stdout, ch, data) if block</code>
</li>
- <li class="covered" data-hits="571" data-linenumber="503">
- <span class="hits">571</span>
+ <li class="covered" data-hits="603" data-linenumber="503">
+ <span class="hits">603</span>
<code class="ruby"> @result[:stdout] += data.to_s unless r == :no_append</code>
</li>
<li class="never" data-hits="" data-linenumber="504">
@@ -3118,24 +3118,24 @@
<span class="hits">67</span>
<code class="ruby"> ch.on_extended_data do |c, type, data|</code>
</li>
- <li class="covered" data-hits="520" data-linenumber="506">
- <span class="hits">520</span>
+ <li class="covered" data-hits="555" data-linenumber="506">
+ <span class="hits">555</span>
<code class="ruby"> @result[:last_event_at] = Time.new</code>
</li>
- <li class="covered" data-hits="520" data-linenumber="507">
- <span class="hits">520</span>
+ <li class="covered" data-hits="555" data-linenumber="507">
+ <span class="hits">555</span>
<code class="ruby"> r = block.call(:stderr, ch, data) if block</code>
</li>
- <li class="covered" data-hits="520" data-linenumber="508">
- <span class="hits">520</span>
+ <li class="covered" data-hits="555" data-linenumber="508">
+ <span class="hits">555</span>
<code class="ruby"> @result[:stderr] += data.to_s unless r == :no_append</code>
</li>
<li class="never" data-hits="" data-linenumber="509">
@@ -3145,11 +3145,11 @@
</li>
<li class="covered" data-hits="67" data-linenumber="510">
<span class="hits">67</span>
- <code class="ruby"> ch.on_request('exit-status') do |c, data|</code>
+ <code class="ruby"> ch.on_request('exit-status') do |c, data|</code>
</li>
<li class="covered" data-hits="62" data-linenumber="511">
<span class="hits">62</span>
@@ -3181,11 +3181,11 @@
</li>
<li class="covered" data-hits="67" data-linenumber="516">
<span class="hits">67</span>
- <code class="ruby"> ch.on_request('exit-signal') do |c, data|</code>
+ <code class="ruby"> ch.on_request('exit-signal') do |c, data|</code>
</li>
<li class="covered" data-hits="3" data-linenumber="517">
<span class="hits">3</span>
@@ -3361,17 +3361,17 @@
</li>
<li class="never" data-hits="" data-linenumber="546">
- <code class="ruby"> # </code>
+ <code class="ruby"> #</code>
</li>
<li class="never" data-hits="" data-linenumber="547">
- <code class="ruby"> # @param [Block] block </code>
+ <code class="ruby"> # @param [Block] block</code>
</li>
<li class="never" data-hits="" data-linenumber="548">
@@ -3601,11 +3601,11 @@
</li>
<li class="never" data-hits="" data-linenumber="586">
- <code class="ruby"> # </code>
+ <code class="ruby"> #</code>
</li>
<li class="covered" data-hits="1" data-linenumber="587">
<span class="hits">1</span>
@@ -3691,829 +3691,865 @@
</li>
<li class="never" data-hits="" data-linenumber="601">
- <code class="ruby"></code>
+ <code class="ruby"> # set lower default timeout on 32bit ruby</code>
</li>
<li class="covered" data-hits="1" data-linenumber="602">
<span class="hits">1</span>
- <code class="ruby"> private</code>
+ <code class="ruby"> MAX_TIMEOUT = ([''].pack('p').size == 8) ? 2**32 : 2**16</code>
</li>
<li class="covered" data-hits="1" data-linenumber="603">
<span class="hits">1</span>
+ <code class="ruby"> if MAX_TIMEOUT == 2**16 and $SUPPRESS_32BIT_WARNING.nil?</code>
+ </li>
+
+ <li class="missed" data-hits="0" data-linenumber="604">
+
+
+ <code class="ruby"> warn "WARNING: 32bit platform detected; Net::SSH::Simple timeout defaults to 65536s (~18 hours)."</code>
+ </li>
+
+ <li class="missed" data-hits="0" data-linenumber="605">
+
+
+ <code class="ruby"> warn "To suppress this warning set $SUPPRESS_32BIT_WARNING=1 before you require 'net/ssh/simple'."</code>
+ </li>
+
+ <li class="never" data-hits="" data-linenumber="606">
+
+
+ <code class="ruby"> end</code>
+ </li>
+
+ <li class="never" data-hits="" data-linenumber="607">
+
+
+ <code class="ruby"></code>
+ </li>
+
+ <li class="covered" data-hits="1" data-linenumber="608">
+ <span class="hits">1</span>
+
+ <code class="ruby"> private</code>
+ </li>
+
+ <li class="covered" data-hits="1" data-linenumber="609">
+ <span class="hits">1</span>
+
<code class="ruby"> EXTRA_OPTS = [:operation_timeout, :close_timeout, :keepalive_interval, :scp_src, :scp_dst]</code>
</li>
- <li class="never" data-hits="" data-linenumber="604">
+ <li class="never" data-hits="" data-linenumber="610">
<code class="ruby"></code>
</li>
- <li class="covered" data-hits="1" data-linenumber="605">
+ <li class="covered" data-hits="1" data-linenumber="611">
<span class="hits">1</span>
<code class="ruby"> def with_session(host, opts={}, &block)</code>
</li>
- <li class="covered" data-hits="101" data-linenumber="606">
+ <li class="covered" data-hits="101" data-linenumber="612">
<span class="hits">101</span>
<code class="ruby"> opts[:timeout] ||= 60</code>
</li>
- <li class="covered" data-hits="101" data-linenumber="607">
+ <li class="covered" data-hits="101" data-linenumber="613">
<span class="hits">101</span>
- <code class="ruby"> opts[:timeout] = 2**32 if opts[:timeout] == 0</code>
+ <code class="ruby"> opts[:timeout] = MAX_TIMEOUT if opts[:timeout] == 0</code>
</li>
- <li class="covered" data-hits="101" data-linenumber="608">
+ <li class="covered" data-hits="101" data-linenumber="614">
<span class="hits">101</span>
<code class="ruby"> opts[:operation_timeout] ||= 3600</code>
</li>
- <li class="covered" data-hits="101" data-linenumber="609">
+ <li class="covered" data-hits="101" data-linenumber="615">
<span class="hits">101</span>
- <code class="ruby"> opts[:operation_timeout] = 2**32 if opts[:operation_timeout] == 0</code>
+ <code class="ruby"> opts[:operation_timeout] = MAX_TIMEOUT if opts[:operation_timeout] == 0</code>
</li>
- <li class="covered" data-hits="101" data-linenumber="610">
+ <li class="covered" data-hits="101" data-linenumber="616">
<span class="hits">101</span>
<code class="ruby"> opts[:close_timeout] ||= 5</code>
</li>
- <li class="covered" data-hits="101" data-linenumber="611">
+ <li class="covered" data-hits="101" data-linenumber="617">
<span class="hits">101</span>
<code class="ruby"> opts[:keepalive_interval] ||= 60</code>
</li>
- <li class="covered" data-hits="101" data-linenumber="612">
+ <li class="covered" data-hits="101" data-linenumber="618">
<span class="hits">101</span>
<code class="ruby"> begin</code>
</li>
- <li class="covered" data-hits="584" data-linenumber="613">
+ <li class="covered" data-hits="584" data-linenumber="619">
<span class="hits">584</span>
<code class="ruby"> net_ssh_opts = opts.reject{|k,v| EXTRA_OPTS.include? k }</code>
</li>
- <li class="covered" data-hits="101" data-linenumber="614">
+ <li class="covered" data-hits="101" data-linenumber="620">
<span class="hits">101</span>
<code class="ruby"> Timeout.timeout(opts[:operation_timeout]) do</code>
</li>
- <li class="covered" data-hits="101" data-linenumber="615">
+ <li class="covered" data-hits="101" data-linenumber="621">
<span class="hits">101</span>
<code class="ruby"> session = Thread.current[:ssh_simple_sessions][host.hash] \</code>
</li>
- <li class="never" data-hits="" data-linenumber="616">
+ <li class="never" data-hits="" data-linenumber="622">
<code class="ruby"> = Thread.current[:ssh_simple_sessions][host.hash] \</code>
</li>
- <li class="never" data-hits="" data-linenumber="617">
+ <li class="never" data-hits="" data-linenumber="623">
<code class="ruby"> || Net::SSH.start(*[host, opts[:user], net_ssh_opts])</code>
</li>
- <li class="covered" data-hits="100" data-linenumber="618">
+ <li class="covered" data-hits="100" data-linenumber="624">
<span class="hits">100</span>
<code class="ruby"> block.call(session)</code>
</li>
- <li class="never" data-hits="" data-linenumber="619">
+ <li class="never" data-hits="" data-linenumber="625">
<code class="ruby"> end</code>
</li>
- <li class="covered" data-hits="7" data-linenumber="620">
+ <li class="covered" data-hits="7" data-linenumber="626">
<span class="hits">7</span>
<code class="ruby"> rescue => e</code>
</li>
- <li class="covered" data-hits="7" data-linenumber="621">
+ <li class="covered" data-hits="7" data-linenumber="627">
<span class="hits">7</span>
- <code class="ruby"> opts[:password].gsub!(/./,'*') if opts.include? :password</code>
+ <code class="ruby"> opts[:password].gsub!(/./,'*') if opts.include? :password</code>
</li>
- <li class="covered" data-hits="7" data-linenumber="622">
+ <li class="covered" data-hits="7" data-linenumber="628">
<span class="hits">7</span>
<code class="ruby"> @result[:exception] = e</code>
</li>
- <li class="covered" data-hits="7" data-linenumber="623">
+ <li class="covered" data-hits="7" data-linenumber="629">
<span class="hits">7</span>
<code class="ruby"> @result[:success] = false</code>
</li>
- <li class="covered" data-hits="7" data-linenumber="624">
+ <li class="covered" data-hits="7" data-linenumber="630">
<span class="hits">7</span>
<code class="ruby"> @result[:timed_out] = true if e.is_a? Timeout::Error</code>
</li>
- <li class="covered" data-hits="7" data-linenumber="625">
+ <li class="covered" data-hits="7" data-linenumber="631">
<span class="hits">7</span>
<code class="ruby"> @result[:finish_at] = Time.new</code>
</li>
- <li class="covered" data-hits="7" data-linenumber="626">
+ <li class="covered" data-hits="7" data-linenumber="632">
<span class="hits">7</span>
<code class="ruby"> raise Net::SSH::Simple::Error, [e, @result]</code>
</li>
- <li class="never" data-hits="" data-linenumber="627">
+ <li class="never" data-hits="" data-linenumber="633">
<code class="ruby"> end</code>
</li>
- <li class="never" data-hits="" data-linenumber="628">
+ <li class="never" data-hits="" data-linenumber="634">
<code class="ruby"> end</code>
</li>
- <li class="never" data-hits="" data-linenumber="629">
+ <li class="never" data-hits="" data-linenumber="635">
<code class="ruby"></code>
</li>
- <li class="covered" data-hits="1" data-linenumber="630">
+ <li class="covered" data-hits="1" data-linenumber="636">
<span class="hits">1</span>
<code class="ruby"> def wait_for_channel(session, channel, result, opts)</code>
</li>
- <li class="covered" data-hits="100" data-linenumber="631">
+ <li class="covered" data-hits="100" data-linenumber="637">
<span class="hits">100</span>
<code class="ruby"> session.loop(1) do</code>
</li>
- <li class="covered" data-hits="1897" data-linenumber="632">
- <span class="hits">1897</span>
+ <li class="covered" data-hits="2345" data-linenumber="638">
+ <span class="hits">2345</span>
<code class="ruby"> if opts[:timeout] < Time.now - result[:last_event_at]</code>
</li>
- <li class="covered" data-hits="1" data-linenumber="633">
+ <li class="covered" data-hits="1" data-linenumber="639">
<span class="hits">1</span>
- <code class="ruby"> raise Timeout::Error, 'idle timeout'</code>
+ <code class="ruby"> raise Timeout::Error, 'idle timeout'</code>
</li>
- <li class="never" data-hits="" data-linenumber="634">
+ <li class="never" data-hits="" data-linenumber="640">
<code class="ruby"> end</code>
</li>
- <li class="never" data-hits="" data-linenumber="635">
+ <li class="never" data-hits="" data-linenumber="641">
<code class="ruby"></code>
</li>
- <li class="never" data-hits="" data-linenumber="636">
+ <li class="never" data-hits="" data-linenumber="642">
<code class="ruby"> # Send keep-alive probes at the configured interval.</code>
</li>
- <li class="covered" data-hits="1896" data-linenumber="637">
- <span class="hits">1896</span>
+ <li class="covered" data-hits="2344" data-linenumber="643">
+ <span class="hits">2344</span>
<code class="ruby"> if opts[:keepalive_interval] < Time.now.to_i - (@result[:last_keepalive_at]||0).to_i</code>
</li>
- <li class="covered" data-hits="103" data-linenumber="638">
+ <li class="covered" data-hits="103" data-linenumber="644">
<span class="hits">103</span>
- <code class="ruby"> session.send_global_request('keep-alive@openssh.com')</code>
+ <code class="ruby"> session.send_global_request('keep-alive@openssh.com')</code>
</li>
- <li class="covered" data-hits="103" data-linenumber="639">
+ <li class="covered" data-hits="103" data-linenumber="645">
<span class="hits">103</span>
<code class="ruby"> @result[:last_keepalive_at] = Time.now</code>
</li>
- <li class="never" data-hits="" data-linenumber="640">
+ <li class="never" data-hits="" data-linenumber="646">
<code class="ruby"> end</code>
</li>
- <li class="covered" data-hits="1896" data-linenumber="641">
- <span class="hits">1896</span>
+ <li class="covered" data-hits="2344" data-linenumber="647">
+ <span class="hits">2344</span>
<code class="ruby"> channel.active?</code>
</li>
- <li class="never" data-hits="" data-linenumber="642">
+ <li class="never" data-hits="" data-linenumber="648">
<code class="ruby"> end</code>
</li>
- <li class="never" data-hits="" data-linenumber="643">
+ <li class="never" data-hits="" data-linenumber="649">
<code class="ruby"> end</code>
</li>
- <li class="never" data-hits="" data-linenumber="644">
+ <li class="never" data-hits="" data-linenumber="650">
<code class="ruby"></code>
</li>
- <li class="covered" data-hits="1" data-linenumber="645">
+ <li class="covered" data-hits="1" data-linenumber="651">
<span class="hits">1</span>
<code class="ruby"> def scp(mode, host, src, dst, opts={}, &block)</code>
</li>
- <li class="covered" data-hits="33" data-linenumber="646">
+ <li class="covered" data-hits="33" data-linenumber="652">
<span class="hits">33</span>
<code class="ruby"> opts[:scp_src] = src</code>
</li>
- <li class="covered" data-hits="33" data-linenumber="647">
+ <li class="covered" data-hits="33" data-linenumber="653">
<span class="hits">33</span>
<code class="ruby"> opts[:scp_dst] = dst</code>
</li>
- <li class="covered" data-hits="33" data-linenumber="648">
+ <li class="covered" data-hits="33" data-linenumber="654">
<span class="hits">33</span>
<code class="ruby"> @result = Result.new(</code>
</li>
- <li class="never" data-hits="" data-linenumber="649">
+ <li class="never" data-hits="" data-linenumber="655">
<code class="ruby"> { :op => :scp, :host => host, :opts => opts, :cmd => mode,</code>
</li>
- <li class="never" data-hits="" data-linenumber="650">
+ <li class="never" data-hits="" data-linenumber="656">
<code class="ruby"> :last_event_at => Time.new, :start_at => Time.new, :success => false</code>
</li>
- <li class="never" data-hits="" data-linenumber="651">
+ <li class="never" data-hits="" data-linenumber="657">
<code class="ruby"> } )</code>
</li>
- <li class="covered" data-hits="33" data-linenumber="652">
+ <li class="covered" data-hits="33" data-linenumber="658">
<span class="hits">33</span>
<code class="ruby"> with_session(host, opts) do |session|</code>
</li>
- <li class="covered" data-hits="33" data-linenumber="653">
+ <li class="covered" data-hits="33" data-linenumber="659">
<span class="hits">33</span>
<code class="ruby"> lt = 0</code>
</li>
- <li class="covered" data-hits="33" data-linenumber="654">
+ <li class="covered" data-hits="33" data-linenumber="660">
<span class="hits">33</span>
<code class="ruby"> channel = session.scp.send(mode, src, dst) do |ch, name, sent, total|</code>
</li>
- <li class="covered" data-hits="64" data-linenumber="655">
+ <li class="covered" data-hits="64" data-linenumber="661">
<span class="hits">64</span>
<code class="ruby"> @result[:total] ||= total</code>
</li>
- <li class="covered" data-hits="64" data-linenumber="656">
+ <li class="covered" data-hits="64" data-linenumber="662">
<span class="hits">64</span>
<code class="ruby"> @result[:sent] = sent</code>
</li>
- <li class="covered" data-hits="64" data-linenumber="657">
+ <li class="covered" data-hits="64" data-linenumber="663">
<span class="hits">64</span>
<code class="ruby"> @result[:last_event_at] = Time.new</code>
</li>
- <li class="covered" data-hits="64" data-linenumber="658">
+ <li class="covered" data-hits="64" data-linenumber="664">
<span class="hits">64</span>
<code class="ruby"> block.call(sent, total) unless block.nil?</code>
</li>
- <li class="never" data-hits="" data-linenumber="659">
+ <li class="never" data-hits="" data-linenumber="665">
<code class="ruby"> end</code>
</li>
- <li class="covered" data-hits="33" data-linenumber="660">
+ <li class="covered" data-hits="33" data-linenumber="666">
<span class="hits">33</span>
<code class="ruby"> wait_for_channel session, channel, @result, opts</code>
</li>
- <li class="covered" data-hits="31" data-linenumber="661">
+ <li class="covered" data-hits="31" data-linenumber="667">
<span class="hits">31</span>
<code class="ruby"> @result[:finish_at] = Time.new</code>
</li>
- <li class="covered" data-hits="31" data-linenumber="662">
+ <li class="covered" data-hits="31" data-linenumber="668">
<span class="hits">31</span>
<code class="ruby"> @result[:success] = @result[:sent] == @result[:total]</code>
</li>
- <li class="covered" data-hits="31" data-linenumber="663">
+ <li class="covered" data-hits="31" data-linenumber="669">
<span class="hits">31</span>
<code class="ruby"> @result</code>
</li>
- <li class="never" data-hits="" data-linenumber="664">
+ <li class="never" data-hits="" data-linenumber="670">
<code class="ruby"> end</code>
</li>
- <li class="never" data-hits="" data-linenumber="665">
+ <li class="never" data-hits="" data-linenumber="671">
<code class="ruby"> end</code>
</li>
- <li class="never" data-hits="" data-linenumber="666">
+ <li class="never" data-hits="" data-linenumber="672">
<code class="ruby"> end</code>
</li>
- <li class="never" data-hits="" data-linenumber="667">
+ <li class="never" data-hits="" data-linenumber="673">
<code class="ruby"> end</code>
</li>
- <li class="never" data-hits="" data-linenumber="668">
+ <li class="never" data-hits="" data-linenumber="674">
<code class="ruby">end</code>
</li>
- <li class="never" data-hits="" data-linenumber="669">
+ <li class="never" data-hits="" data-linenumber="675">
<code class="ruby"></code>
</li>
- <li class="covered" data-hits="1" data-linenumber="670">
+ <li class="covered" data-hits="1" data-linenumber="676">
<span class="hits">1</span>
<code class="ruby">module Net</code>
</li>
- <li class="covered" data-hits="1" data-linenumber="671">
+ <li class="covered" data-hits="1" data-linenumber="677">
<span class="hits">1</span>
<code class="ruby"> module SSH</code>
</li>
- <li class="covered" data-hits="1" data-linenumber="672">
+ <li class="covered" data-hits="1" data-linenumber="678">
<span class="hits">1</span>
<code class="ruby"> class Simple</code>
</li>
- <li class="never" data-hits="" data-linenumber="673">
+ <li class="never" data-hits="" data-linenumber="679">
<code class="ruby"> #</code>
</li>
- <li class="never" data-hits="" data-linenumber="674">
+ <li class="never" data-hits="" data-linenumber="680">
<code class="ruby"> # Error that occured during a Net::SSH::Simple operation.</code>
</li>
- <li class="never" data-hits="" data-linenumber="675">
+ <li class="never" data-hits="" data-linenumber="681">
<code class="ruby"> #</code>
</li>
- <li class="covered" data-hits="1" data-linenumber="676">
+ <li class="covered" data-hits="1" data-linenumber="682">
<span class="hits">1</span>
<code class="ruby"> class Error < RuntimeError</code>
</li>
- <li class="never" data-hits="" data-linenumber="677">
+ <li class="never" data-hits="" data-linenumber="683">
<code class="ruby"> # Reference to the underlying Exception</code>
</li>
- <li class="covered" data-hits="1" data-linenumber="678">
+ <li class="covered" data-hits="1" data-linenumber="684">
<span class="hits">1</span>
<code class="ruby"> attr_reader :wrapped</code>
</li>
- <li class="never" data-hits="" data-linenumber="679">
+ <li class="never" data-hits="" data-linenumber="685">
<code class="ruby"></code>
</li>
- <li class="never" data-hits="" data-linenumber="680">
+ <li class="never" data-hits="" data-linenumber="686">
<code class="ruby"> # {Net::SSH::Simple::Result} of the interrupted operation (may be incomplete!).</code>
</li>
- <li class="covered" data-hits="1" data-linenumber="681">
+ <li class="covered" data-hits="1" data-linenumber="687">
<span class="hits">1</span>
<code class="ruby"> attr_reader :result</code>
</li>
- <li class="never" data-hits="" data-linenumber="682">
+ <li class="never" data-hits="" data-linenumber="688">
<code class="ruby"></code>
</li>
- <li class="covered" data-hits="1" data-linenumber="683">
+ <li class="covered" data-hits="1" data-linenumber="689">
<span class="hits">1</span>
<code class="ruby"> def initialize(msg, e=$!)</code>
</li>
- <li class="covered" data-hits="7" data-linenumber="684">
+ <li class="covered" data-hits="7" data-linenumber="690">
<span class="hits">7</span>
<code class="ruby"> super(msg)</code>
</li>
- <li class="covered" data-hits="7" data-linenumber="685">
+ <li class="covered" data-hits="7" data-linenumber="691">
<span class="hits">7</span>
<code class="ruby"> @wrapped = e</code>
</li>
- <li class="covered" data-hits="7" data-linenumber="686">
+ <li class="covered" data-hits="7" data-linenumber="692">
<span class="hits">7</span>
<code class="ruby"> @result = msg[1]</code>
</li>
- <li class="never" data-hits="" data-linenumber="687">
+ <li class="never" data-hits="" data-linenumber="693">
<code class="ruby"> end</code>
</li>
- <li class="never" data-hits="" data-linenumber="688">
+ <li class="never" data-hits="" data-linenumber="694">
<code class="ruby"></code>
</li>
- <li class="covered" data-hits="1" data-linenumber="689">
+ <li class="covered" data-hits="1" data-linenumber="695">
<span class="hits">1</span>
<code class="ruby"> def to_s</code>
</li>
- <li class="covered" data-hits="7" data-linenumber="690">
+ <li class="covered" data-hits="7" data-linenumber="696">
<span class="hits">7</span>
<code class="ruby"> "#{@wrapped} @ #{@result}"</code>
</li>
- <li class="never" data-hits="" data-linenumber="691">
+ <li class="never" data-hits="" data-linenumber="697">
<code class="ruby"> end</code>
</li>
- <li class="never" data-hits="" data-linenumber="692">
+ <li class="never" data-hits="" data-linenumber="698">
<code class="ruby"> end</code>
</li>
- <li class="never" data-hits="" data-linenumber="693">
+ <li class="never" data-hits="" data-linenumber="699">
<code class="ruby"></code>
</li>
- <li class="never" data-hits="" data-linenumber="694">
+ <li class="never" data-hits="" data-linenumber="700">
<code class="ruby"> #</code>
</li>
- <li class="never" data-hits="" data-linenumber="695">
+ <li class="never" data-hits="" data-linenumber="701">
<code class="ruby"> # Result of a Net::SSH::Simple operation.</code>
</li>
- <li class="never" data-hits="" data-linenumber="696">
+ <li class="never" data-hits="" data-linenumber="702">
<code class="ruby"> #</code>
</li>
- <li class="never" data-hits="" data-linenumber="697">
+ <li class="never" data-hits="" data-linenumber="703">
<code class="ruby"> # @attr [String] host Hostname/IP address</code>
</li>
- <li class="never" data-hits="" data-linenumber="698">
+ <li class="never" data-hits="" data-linenumber="704">
<code class="ruby"> # @attr [Symbol] op :ssh or :scp</code>
</li>
- <li class="never" data-hits="" data-linenumber="699">
+ <li class="never" data-hits="" data-linenumber="705">
<code class="ruby"> # @attr [String] cmd Shell command (ssh) or :upload/:download (scp)</code>
</li>
- <li class="never" data-hits="" data-linenumber="700">
+ <li class="never" data-hits="" data-linenumber="706">
<code class="ruby"> # @attr [Time] start_at Timestamp of operation start</code>
</li>
- <li class="never" data-hits="" data-linenumber="701">
+ <li class="never" data-hits="" data-linenumber="707">
<code class="ruby"> # @attr [Time] finish_at Timestamp of operation finish</code>
</li>
- <li class="never" data-hits="" data-linenumber="702">
+ <li class="never" data-hits="" data-linenumber="708">
<code class="ruby"> # @attr [Time] last_keepalive_at Timestamp of last keepalive (if any)</code>
</li>
- <li class="never" data-hits="" data-linenumber="703">
+ <li class="never" data-hits="" data-linenumber="709">
<code class="ruby"> # @attr [Time] last_event_at Timestamp of last activity</code>
</li>
- <li class="never" data-hits="" data-linenumber="704">
+ <li class="never" data-hits="" data-linenumber="710">
<code class="ruby"> # @attr [Boolean] timed_out True if the operation timed out</code>
</li>
- <li class="never" data-hits="" data-linenumber="705">
+ <li class="never" data-hits="" data-linenumber="711">
<code class="ruby"> # @attr [String] stdout Output captured on stdout (SSH only)</code>
</li>
- <li class="never" data-hits="" data-linenumber="706">
+ <li class="never" data-hits="" data-linenumber="712">
<code class="ruby"> # @attr [String] stderr Output captured on stderr (SSH only)</code>
</li>
- <li class="never" data-hits="" data-linenumber="707">
+ <li class="never" data-hits="" data-linenumber="713">
<code class="ruby"> # @attr [boolean] success Indicates whether the transport-connection was successful</code>
</li>
- <li class="never" data-hits="" data-linenumber="708">
+ <li class="never" data-hits="" data-linenumber="714">
<code class="ruby"> # @attr [String] exit_code UNIX exit code (SSH only)</code>
</li>
- <li class="never" data-hits="" data-linenumber="709">
+ <li class="never" data-hits="" data-linenumber="715">
<code class="ruby"> # @attr [Integer] total Size of requested file (in bytes, SCP only)</code>
</li>
- <li class="never" data-hits="" data-linenumber="710">
+ <li class="never" data-hits="" data-linenumber="716">
<code class="ruby"> # @attr [Integer] sent Number of bytes transferred (SCP only)</code>
</li>
- <li class="never" data-hits="" data-linenumber="711">
+ <li class="never" data-hits="" data-linenumber="717">
<code class="ruby"> # @attr [Hash] opts The options that the operation was parametrized with</code>
</li>
- <li class="never" data-hits="" data-linenumber="712">
+ <li class="never" data-hits="" data-linenumber="718">
<code class="ruby"> # @attr [Exception] exception Exception that occurred during this operation (if any)</code>
</li>
- <li class="never" data-hits="" data-linenumber="713">
+ <li class="never" data-hits="" data-linenumber="719">
<code class="ruby"> # @attr [String] exit_signal</code>
</li>
- <li class="never" data-hits="" data-linenumber="714">
+ <li class="never" data-hits="" data-linenumber="720">
<code class="ruby"> # Only present if the remote command terminated due to a signal (SSH only)</code>
</li>
- <li class="never" data-hits="" data-linenumber="715">
+ <li class="never" data-hits="" data-linenumber="721">
<code class="ruby"> #</code>
</li>
- <li class="covered" data-hits="1" data-linenumber="716">
+ <li class="covered" data-hits="1" data-linenumber="722">
<span class="hits">1</span>
<code class="ruby"> class Result < Hashie::Dash</code>
</li>
- <li class="covered" data-hits="1" data-linenumber="717">
+ <li class="covered" data-hits="1" data-linenumber="723">
<span class="hits">1</span>
<code class="ruby"> property :host</code>
</li>
- <li class="covered" data-hits="1" data-linenumber="718">
+ <li class="covered" data-hits="1" data-linenumber="724">
<span class="hits">1</span>
<code class="ruby"> property :op</code>
</li>
- <li class="covered" data-hits="1" data-linenumber="719">
+ <li class="covered" data-hits="1" data-linenumber="725">
<span class="hits">1</span>
<code class="ruby"> property :cmd</code>
</li>
- <li class="covered" data-hits="1" data-linenumber="720">
+ <li class="covered" data-hits="1" data-linenumber="726">
<span class="hits">1</span>
<code class="ruby"> property :start_at</code>
</li>
- <li class="covered" data-hits="1" data-linenumber="721">
+ <li class="covered" data-hits="1" data-linenumber="727">
<span class="hits">1</span>
<code class="ruby"> property :finish_at</code>
</li>
- <li class="covered" data-hits="1" data-linenumber="722">
+ <li class="covered" data-hits="1" data-linenumber="728">
<span class="hits">1</span>
<code class="ruby"> property :last_keepalive_at</code>
</li>
- <li class="covered" data-hits="1" data-linenumber="723">
+ <li class="covered" data-hits="1" data-linenumber="729">
<span class="hits">1</span>
<code class="ruby"> property :last_event_at</code>
</li>
- <li class="covered" data-hits="1" data-linenumber="724">
+ <li class="covered" data-hits="1" data-linenumber="730">
<span class="hits">1</span>
<code class="ruby"> property :timed_out</code>
</li>
- <li class="covered" data-hits="1" data-linenumber="725">
+ <li class="covered" data-hits="1" data-linenumber="731">
<span class="hits">1</span>
- <code class="ruby"> property :stdout, :default => ''</code>
+ <code class="ruby"> property :stdout, :default => ''</code>
</li>
- <li class="covered" data-hits="1" data-linenumber="726">
+ <li class="covered" data-hits="1" data-linenumber="732">
<span class="hits">1</span>
- <code class="ruby"> property :stderr, :default => ''</code>
+ <code class="ruby"> property :stderr, :default => ''</code>
</li>
- <li class="covered" data-hits="1" data-linenumber="727">
+ <li class="covered" data-hits="1" data-linenumber="733">
<span class="hits">1</span>
<code class="ruby"> property :success, :default => false</code>
</li>
- <li class="covered" data-hits="1" data-linenumber="728">
+ <li class="covered" data-hits="1" data-linenumber="734">
<span class="hits">1</span>
<code class="ruby"> property :exit_code</code>
</li>
- <li class="covered" data-hits="1" data-linenumber="729">
+ <li class="covered" data-hits="1" data-linenumber="735">
<span class="hits">1</span>
<code class="ruby"> property :total</code>
</li>
- <li class="covered" data-hits="1" data-linenumber="730">
+ <li class="covered" data-hits="1" data-linenumber="736">
<span class="hits">1</span>
<code class="ruby"> property :sent</code>
</li>
- <li class="covered" data-hits="1" data-linenumber="731">
+ <li class="covered" data-hits="1" data-linenumber="737">
<span class="hits">1</span>
<code class="ruby"> property :opts</code>
</li>
- <li class="covered" data-hits="1" data-linenumber="732">
+ <li class="covered" data-hits="1" data-linenumber="738">
<span class="hits">1</span>
<code class="ruby"> property :exception</code>
</li>
- <li class="covered" data-hits="1" data-linenumber="733">
+ <li class="covered" data-hits="1" data-linenumber="739">
<span class="hits">1</span>
<code class="ruby"> property :exit_signal</code>
</li>
- <li class="never" data-hits="" data-linenumber="734">
+ <li class="never" data-hits="" data-linenumber="740">
<code class="ruby"> end</code>
</li>
- <li class="never" data-hits="" data-linenumber="735">
+ <li class="never" data-hits="" data-linenumber="741">
<code class="ruby"> end</code>
</li>
- <li class="never" data-hits="" data-linenumber="736">
+ <li class="never" data-hits="" data-linenumber="742">
<code class="ruby"> end</code>
</li>
- <li class="never" data-hits="" data-linenumber="737">
+ <li class="never" data-hits="" data-linenumber="743">
<code class="ruby">end</code>
</li>
- <li class="never" data-hits="" data-linenumber="738">
+ <li class="never" data-hits="" data-linenumber="744">
<code class="ruby"></code>
</li>