net-ssh-simple 1.6.2 → 1.6.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -294,10 +294,10 @@
294
294
  null,
295
295
  null,
296
296
  1,
297
- 4,
298
- 4,
299
297
  2,
300
298
  2,
299
+ 1,
300
+ 1,
301
301
  null,
302
302
  null,
303
303
  null,
@@ -319,22 +319,10 @@
319
319
  null,
320
320
  null,
321
321
  1,
322
- 4,
323
- 4,
324
322
  2,
325
323
  2,
326
- null,
327
- null,
328
- null,
329
324
  1,
330
- 2,
331
- 2,
332
- null,
333
- null,
334
- null,
335
325
  1,
336
- 2,
337
- 2,
338
326
  null,
339
327
  null,
340
328
  null,
@@ -350,8 +338,8 @@
350
338
  null,
351
339
  null,
352
340
  1,
353
- 24,
354
- 24,
341
+ 16,
342
+ 16,
355
343
  null,
356
344
  null,
357
345
  null,
@@ -368,20 +356,8 @@
368
356
  null,
369
357
  null,
370
358
  1,
371
- 25,
372
- 25,
373
- null,
374
- null,
375
- null,
376
- 1,
377
- 6,
378
- 6,
379
- null,
380
- null,
381
- null,
382
- 1,
383
- 6,
384
- 6,
359
+ 17,
360
+ 17,
385
361
  null,
386
362
  null,
387
363
  null,
@@ -526,14 +502,14 @@
526
502
  67,
527
503
  67,
528
504
  67,
529
- 991,
530
- 991,
531
- 991,
505
+ 571,
506
+ 571,
507
+ 571,
532
508
  null,
533
509
  67,
534
- 957,
535
- 957,
536
- 957,
510
+ 520,
511
+ 520,
512
+ 520,
537
513
  null,
538
514
  67,
539
515
  62,
@@ -564,9 +540,9 @@
564
540
  1,
565
541
  null,
566
542
  1,
567
- 77,
568
- 77,
569
- 77,
543
+ 69,
544
+ 69,
545
+ 69,
570
546
  null,
571
547
  null,
572
548
  null,
@@ -601,10 +577,10 @@
601
577
  null,
602
578
  null,
603
579
  1,
604
- 42,
605
- 42,
606
- 42,
607
- 42,
580
+ 40,
581
+ 40,
582
+ 40,
583
+ 40,
608
584
  null,
609
585
  null,
610
586
  null,
@@ -613,9 +589,9 @@
613
589
  null,
614
590
  null,
615
591
  1,
616
- 68,
617
- 67,
618
- 133,
592
+ 62,
593
+ 61,
594
+ 121,
619
595
  null,
620
596
  1,
621
597
  1,
@@ -623,7 +599,7 @@
623
599
  null,
624
600
  null,
625
601
  null,
626
- 68,
602
+ 62,
627
603
  null,
628
604
  null,
629
605
  null,
@@ -631,64 +607,64 @@
631
607
  1,
632
608
  null,
633
609
  1,
634
- 117,
635
- 117,
636
- 117,
637
- 117,
638
- 117,
639
- 117,
640
- 117,
641
- 704,
642
- 117,
643
- 117,
610
+ 101,
611
+ 101,
612
+ 101,
613
+ 101,
614
+ 101,
615
+ 101,
616
+ 101,
617
+ 584,
618
+ 101,
619
+ 101,
644
620
  null,
645
621
  null,
646
- 116,
622
+ 100,
647
623
  null,
648
- 9,
649
- 9,
650
- 9,
651
- 9,
652
- 9,
653
- 9,
654
- 9,
624
+ 7,
625
+ 7,
626
+ 7,
627
+ 7,
628
+ 7,
629
+ 7,
630
+ 7,
655
631
  null,
656
632
  null,
657
633
  null,
658
634
  1,
659
- 116,
660
- 2383,
635
+ 100,
636
+ 1897,
661
637
  1,
662
638
  null,
663
639
  null,
664
640
  null,
665
- 2382,
666
- 119,
667
- 119,
641
+ 1896,
642
+ 103,
643
+ 103,
668
644
  null,
669
- 2382,
645
+ 1896,
670
646
  null,
671
647
  null,
672
648
  null,
673
649
  1,
674
- 49,
675
- 49,
676
- 49,
650
+ 33,
651
+ 33,
652
+ 33,
677
653
  null,
678
654
  null,
679
655
  null,
680
- 49,
681
- 49,
682
- 49,
683
- 94,
684
- 94,
685
- 94,
686
- 94,
656
+ 33,
657
+ 33,
658
+ 33,
659
+ 64,
660
+ 64,
661
+ 64,
662
+ 64,
687
663
  null,
688
- 49,
689
- 45,
690
- 45,
691
- 45,
664
+ 33,
665
+ 31,
666
+ 31,
667
+ 31,
692
668
  null,
693
669
  null,
694
670
  null,
@@ -709,13 +685,13 @@
709
685
  1,
710
686
  null,
711
687
  1,
712
- 9,
713
- 9,
714
- 9,
688
+ 7,
689
+ 7,
690
+ 7,
715
691
  null,
716
692
  null,
717
693
  1,
718
- 9,
694
+ 7,
719
695
  null,
720
696
  null,
721
697
  null,
@@ -766,6 +742,6 @@
766
742
  null
767
743
  ]
768
744
  },
769
- "timestamp": 1359217125
745
+ "timestamp": 1386495004
770
746
  }
771
747
  }
data/coverage/index.html CHANGED
@@ -14,7 +14,7 @@
14
14
  <img src="./assets/0.7.1/loading.gif" alt="loading"/>
15
15
  </div>
16
16
  <div id="wrapper" style="display:none;">
17
- <div class="timestamp">Generated <abbr class="timeago" title="2013-01-26T17:18:45+01:00">2013-01-26T17:18:45+01:00</abbr></div>
17
+ <div class="timestamp">Generated <abbr class="timeago" title="2013-12-08T10:30:04+01:00">2013-12-08T10:30:04+01:00</abbr></div>
18
18
  <ul class="group_tabs"></ul>
19
19
 
20
20
  <div id="content">
@@ -25,15 +25,15 @@
25
25
  covered at
26
26
  <span class="covered_strength">
27
27
  <span class="green">
28
- 106.3
28
+ 84.6
29
29
  </span>
30
30
  </span> hits/line)
31
31
  </h2>
32
32
  <a name="AllFiles"></a>
33
33
  <div>
34
34
  <b>1</b> files in total.
35
- <b>174</b> relevant lines.
36
- <span class="green"><b>174</b> lines covered</span> and
35
+ <b>162</b> relevant lines.
36
+ <span class="green"><b>162</b> lines covered</span> and
37
37
  <span class="red"><b>0</b> lines missed </span>
38
38
  </div>
39
39
  <table class="file_list">
@@ -53,11 +53,11 @@
53
53
  <tr>
54
54
  <td class="strong"><a href="#ebc1c40297fe09a20539f3d0e94180d9c9008e93" class="src_link" title="lib/net/ssh/simple.rb">lib/net/ssh/simple.rb</a></td>
55
55
  <td class="green strong">100.0 %</td>
56
- <td>762</td>
57
- <td>174</td>
58
- <td>174</td>
56
+ <td>738</td>
57
+ <td>162</td>
58
+ <td>162</td>
59
59
  <td>0</td>
60
- <td>106.3</td>
60
+ <td>84.6</td>
61
61
  </tr>
62
62
 
63
63
  </tbody>
@@ -81,8 +81,8 @@
81
81
  <h3>lib/net/ssh/simple.rb</h3>
82
82
  <h4><span class="green">100.0 %</span> covered</h4>
83
83
  <div>
84
- <b>174</b> relevant lines.
85
- <span class="green"><b>174</b> lines covered</span> and
84
+ <b>162</b> relevant lines.
85
+ <span class="green"><b>162</b> lines covered</span> and
86
86
  <span class="red"><b>0</b> lines missed.</span>
87
87
  </div>
88
88
  </div>
@@ -1842,26 +1842,26 @@
1842
1842
  <code class="ruby"> def self.scp_put(*args, &amp;block)</code>
1843
1843
  </li>
1844
1844
 
1845
- <li class="covered" data-hits="4" data-linenumber="293">
1846
- <span class="hits">4</span>
1845
+ <li class="covered" data-hits="2" data-linenumber="293">
1846
+ <span class="hits">2</span>
1847
1847
 
1848
1848
  <code class="ruby"> s = self.new</code>
1849
1849
  </li>
1850
1850
 
1851
- <li class="covered" data-hits="4" data-linenumber="294">
1852
- <span class="hits">4</span>
1851
+ <li class="covered" data-hits="2" data-linenumber="294">
1852
+ <span class="hits">2</span>
1853
1853
 
1854
1854
  <code class="ruby"> r = s.scp_put(*args, &amp;block)</code>
1855
1855
  </li>
1856
1856
 
1857
- <li class="covered" data-hits="2" data-linenumber="295">
1858
- <span class="hits">2</span>
1857
+ <li class="covered" data-hits="1" data-linenumber="295">
1858
+ <span class="hits">1</span>
1859
1859
 
1860
1860
  <code class="ruby"> s.close</code>
1861
1861
  </li>
1862
1862
 
1863
- <li class="covered" data-hits="2" data-linenumber="296">
1864
- <span class="hits">2</span>
1863
+ <li class="covered" data-hits="1" data-linenumber="296">
1864
+ <span class="hits">1</span>
1865
1865
 
1866
1866
  <code class="ruby"> r</code>
1867
1867
  </li>
@@ -1992,26 +1992,26 @@
1992
1992
  <code class="ruby"> def self.scp_get(*args, &amp;block)</code>
1993
1993
  </li>
1994
1994
 
1995
- <li class="covered" data-hits="4" data-linenumber="318">
1996
- <span class="hits">4</span>
1995
+ <li class="covered" data-hits="2" data-linenumber="318">
1996
+ <span class="hits">2</span>
1997
1997
 
1998
1998
  <code class="ruby"> s = self.new</code>
1999
1999
  </li>
2000
2000
 
2001
- <li class="covered" data-hits="4" data-linenumber="319">
2002
- <span class="hits">4</span>
2001
+ <li class="covered" data-hits="2" data-linenumber="319">
2002
+ <span class="hits">2</span>
2003
2003
 
2004
2004
  <code class="ruby"> r = s.scp_get(*args, &amp;block)</code>
2005
2005
  </li>
2006
2006
 
2007
- <li class="covered" data-hits="2" data-linenumber="320">
2008
- <span class="hits">2</span>
2007
+ <li class="covered" data-hits="1" data-linenumber="320">
2008
+ <span class="hits">1</span>
2009
2009
 
2010
2010
  <code class="ruby"> s.close</code>
2011
2011
  </li>
2012
2012
 
2013
- <li class="covered" data-hits="2" data-linenumber="321">
2014
- <span class="hits">2</span>
2013
+ <li class="covered" data-hits="1" data-linenumber="321">
2014
+ <span class="hits">1</span>
2015
2015
 
2016
2016
  <code class="ruby"> r</code>
2017
2017
  </li>
@@ -2031,2632 +2031,2488 @@
2031
2031
  <li class="never" data-hits="" data-linenumber="324">
2032
2032
 
2033
2033
 
2034
- <code class="ruby"> # @deprecated Use scp_put instead.</code>
2035
- </li>
2036
-
2037
- <li class="covered" data-hits="1" data-linenumber="325">
2038
- <span class="hits">1</span>
2039
-
2040
- <code class="ruby"> def self.scp_ul(*args, &amp;block)</code>
2041
- </li>
2042
-
2043
- <li class="covered" data-hits="2" data-linenumber="326">
2044
- <span class="hits">2</span>
2045
-
2046
- <code class="ruby"> warn &quot;[DEPRECATION] Net::SSH::Simple.scp_ul is deprecated. Please use .scp_put instead (usage is identical, the method was only renamed).&quot;</code>
2047
- </li>
2048
-
2049
- <li class="covered" data-hits="2" data-linenumber="327">
2050
- <span class="hits">2</span>
2051
-
2052
- <code class="ruby"> self.scp_put(*args, &amp;block)</code>
2053
- </li>
2054
-
2055
- <li class="never" data-hits="" data-linenumber="328">
2056
-
2057
-
2058
- <code class="ruby"> end</code>
2059
- </li>
2060
-
2061
- <li class="never" data-hits="" data-linenumber="329">
2062
-
2063
-
2064
- <code class="ruby"></code>
2065
- </li>
2066
-
2067
- <li class="never" data-hits="" data-linenumber="330">
2068
-
2069
-
2070
- <code class="ruby"> # @deprecated Use scp_get instead.</code>
2071
- </li>
2072
-
2073
- <li class="covered" data-hits="1" data-linenumber="331">
2074
- <span class="hits">1</span>
2075
-
2076
- <code class="ruby"> def self.scp_dl(*args, &amp;block)</code>
2077
- </li>
2078
-
2079
- <li class="covered" data-hits="2" data-linenumber="332">
2080
- <span class="hits">2</span>
2081
-
2082
- <code class="ruby"> warn &quot;[DEPRECATION] Net::SSH::Simple.scp_dl is deprecated. Please use .scp_get instead (usage is identical, the method was only renamed).&quot;</code>
2083
- </li>
2084
-
2085
- <li class="covered" data-hits="2" data-linenumber="333">
2086
- <span class="hits">2</span>
2087
-
2088
- <code class="ruby"> self.scp_get(*args, &amp;block)</code>
2089
- </li>
2090
-
2091
- <li class="never" data-hits="" data-linenumber="334">
2092
-
2093
-
2094
- <code class="ruby"> end</code>
2095
- </li>
2096
-
2097
- <li class="never" data-hits="" data-linenumber="335">
2098
-
2099
-
2100
- <code class="ruby"></code>
2101
- </li>
2102
-
2103
- <li class="never" data-hits="" data-linenumber="336">
2104
-
2105
-
2106
2034
  <code class="ruby"> # </code>
2107
2035
  </li>
2108
2036
 
2109
- <li class="never" data-hits="" data-linenumber="337">
2037
+ <li class="never" data-hits="" data-linenumber="325">
2110
2038
 
2111
2039
 
2112
2040
  <code class="ruby"> # SCP upload to a remote host.</code>
2113
2041
  </li>
2114
2042
 
2115
- <li class="never" data-hits="" data-linenumber="338">
2043
+ <li class="never" data-hits="" data-linenumber="326">
2116
2044
 
2117
2045
 
2118
2046
  <code class="ruby"> # The underlying Net::SSH::Simple instance will re-use</code>
2119
2047
  </li>
2120
2048
 
2121
- <li class="never" data-hits="" data-linenumber="339">
2049
+ <li class="never" data-hits="" data-linenumber="327">
2122
2050
 
2123
2051
 
2124
2052
  <code class="ruby"> # existing connections for optimal performance.</code>
2125
2053
  </li>
2126
2054
 
2127
- <li class="never" data-hits="" data-linenumber="340">
2055
+ <li class="never" data-hits="" data-linenumber="328">
2128
2056
 
2129
2057
 
2130
2058
  <code class="ruby"> #</code>
2131
2059
  </li>
2132
2060
 
2133
- <li class="never" data-hits="" data-linenumber="341">
2061
+ <li class="never" data-hits="" data-linenumber="329">
2134
2062
 
2135
2063
 
2136
2064
  <code class="ruby"> # @param [String] host Destination hostname or ip-address</code>
2137
2065
  </li>
2138
2066
 
2139
- <li class="never" data-hits="" data-linenumber="342">
2067
+ <li class="never" data-hits="" data-linenumber="330">
2140
2068
 
2141
2069
 
2142
2070
  <code class="ruby"> # @param [String] src Source path (on localhost)</code>
2143
2071
  </li>
2144
2072
 
2145
- <li class="never" data-hits="" data-linenumber="343">
2073
+ <li class="never" data-hits="" data-linenumber="331">
2146
2074
 
2147
2075
 
2148
2076
  <code class="ruby"> # @param [String] dst Destination path (on remote host)</code>
2149
2077
  </li>
2150
2078
 
2151
- <li class="never" data-hits="" data-linenumber="344">
2079
+ <li class="never" data-hits="" data-linenumber="332">
2152
2080
 
2153
2081
 
2154
2082
  <code class="ruby"> # @param opts (see Net::SSH::Simple#ssh)</code>
2155
2083
  </li>
2156
2084
 
2157
- <li class="never" data-hits="" data-linenumber="345">
2085
+ <li class="never" data-hits="" data-linenumber="333">
2158
2086
 
2159
2087
 
2160
2088
  <code class="ruby"> # @param [Block] block Progress callback (optional)</code>
2161
2089
  </li>
2162
2090
 
2163
- <li class="never" data-hits="" data-linenumber="346">
2091
+ <li class="never" data-hits="" data-linenumber="334">
2164
2092
 
2165
2093
 
2166
2094
  <code class="ruby"> # @return [Net::SSH::Simple::Result] Result</code>
2167
2095
  </li>
2168
2096
 
2169
- <li class="never" data-hits="" data-linenumber="347">
2097
+ <li class="never" data-hits="" data-linenumber="335">
2170
2098
 
2171
2099
 
2172
2100
  <code class="ruby"> #</code>
2173
2101
  </li>
2174
2102
 
2175
- <li class="covered" data-hits="1" data-linenumber="348">
2103
+ <li class="covered" data-hits="1" data-linenumber="336">
2176
2104
  <span class="hits">1</span>
2177
2105
 
2178
2106
  <code class="ruby"> def scp_put(host, src, dst, opts={}, &amp;block)</code>
2179
2107
  </li>
2180
2108
 
2181
- <li class="covered" data-hits="24" data-linenumber="349">
2182
- <span class="hits">24</span>
2109
+ <li class="covered" data-hits="16" data-linenumber="337">
2110
+ <span class="hits">16</span>
2183
2111
 
2184
2112
  <code class="ruby"> opts = @opts.merge(opts)</code>
2185
2113
  </li>
2186
2114
 
2187
- <li class="covered" data-hits="24" data-linenumber="350">
2188
- <span class="hits">24</span>
2115
+ <li class="covered" data-hits="16" data-linenumber="338">
2116
+ <span class="hits">16</span>
2189
2117
 
2190
2118
  <code class="ruby"> scp(:upload, host, src, dst, opts, &amp;block)</code>
2191
2119
  </li>
2192
2120
 
2193
- <li class="never" data-hits="" data-linenumber="351">
2121
+ <li class="never" data-hits="" data-linenumber="339">
2194
2122
 
2195
2123
 
2196
2124
  <code class="ruby"> end</code>
2197
2125
  </li>
2198
2126
 
2199
- <li class="never" data-hits="" data-linenumber="352">
2127
+ <li class="never" data-hits="" data-linenumber="340">
2200
2128
 
2201
2129
 
2202
2130
  <code class="ruby"></code>
2203
2131
  </li>
2204
2132
 
2205
- <li class="never" data-hits="" data-linenumber="353">
2133
+ <li class="never" data-hits="" data-linenumber="341">
2206
2134
 
2207
2135
 
2208
2136
  <code class="ruby"> #</code>
2209
2137
  </li>
2210
2138
 
2211
- <li class="never" data-hits="" data-linenumber="354">
2139
+ <li class="never" data-hits="" data-linenumber="342">
2212
2140
 
2213
2141
 
2214
2142
  <code class="ruby"> # SCP download from a remote host.</code>
2215
2143
  </li>
2216
2144
 
2217
- <li class="never" data-hits="" data-linenumber="355">
2145
+ <li class="never" data-hits="" data-linenumber="343">
2218
2146
 
2219
2147
 
2220
2148
  <code class="ruby"> # The underlying Net::SSH::Simple instance will re-use</code>
2221
2149
  </li>
2222
2150
 
2223
- <li class="never" data-hits="" data-linenumber="356">
2151
+ <li class="never" data-hits="" data-linenumber="344">
2224
2152
 
2225
2153
 
2226
2154
  <code class="ruby"> # existing connections for optimal performance.</code>
2227
2155
  </li>
2228
2156
 
2229
- <li class="never" data-hits="" data-linenumber="357">
2157
+ <li class="never" data-hits="" data-linenumber="345">
2230
2158
 
2231
2159
 
2232
2160
  <code class="ruby"> # </code>
2233
2161
  </li>
2234
2162
 
2235
- <li class="never" data-hits="" data-linenumber="358">
2163
+ <li class="never" data-hits="" data-linenumber="346">
2236
2164
 
2237
2165
 
2238
2166
  <code class="ruby"> # @param [String] host Destination hostname or ip-address</code>
2239
2167
  </li>
2240
2168
 
2241
- <li class="never" data-hits="" data-linenumber="359">
2169
+ <li class="never" data-hits="" data-linenumber="347">
2242
2170
 
2243
2171
 
2244
2172
  <code class="ruby"> # @param [String] src Source path (on remote host)</code>
2245
2173
  </li>
2246
2174
 
2247
- <li class="never" data-hits="" data-linenumber="360">
2175
+ <li class="never" data-hits="" data-linenumber="348">
2248
2176
 
2249
2177
 
2250
2178
  <code class="ruby"> # @param [String] dst Destination path (on localhost)</code>
2251
2179
  </li>
2252
2180
 
2253
- <li class="never" data-hits="" data-linenumber="361">
2181
+ <li class="never" data-hits="" data-linenumber="349">
2254
2182
 
2255
2183
 
2256
2184
  <code class="ruby"> # @param opts (see Net::SSH::Simple#ssh)</code>
2257
2185
  </li>
2258
2186
 
2259
- <li class="never" data-hits="" data-linenumber="362">
2187
+ <li class="never" data-hits="" data-linenumber="350">
2260
2188
 
2261
2189
 
2262
2190
  <code class="ruby"> # @param [Block] block Progress callback (optional)</code>
2263
2191
  </li>
2264
2192
 
2265
- <li class="never" data-hits="" data-linenumber="363">
2193
+ <li class="never" data-hits="" data-linenumber="351">
2266
2194
 
2267
2195
 
2268
2196
  <code class="ruby"> # @return [Net::SSH::Simple::Result] Result</code>
2269
2197
  </li>
2270
2198
 
2271
- <li class="never" data-hits="" data-linenumber="364">
2199
+ <li class="never" data-hits="" data-linenumber="352">
2272
2200
 
2273
2201
 
2274
2202
  <code class="ruby"> # @see Net::SSH::Simple#scp_put</code>
2275
2203
  </li>
2276
2204
 
2277
- <li class="never" data-hits="" data-linenumber="365">
2205
+ <li class="never" data-hits="" data-linenumber="353">
2278
2206
 
2279
2207
 
2280
2208
  <code class="ruby"> #</code>
2281
2209
  </li>
2282
2210
 
2283
- <li class="covered" data-hits="1" data-linenumber="366">
2211
+ <li class="covered" data-hits="1" data-linenumber="354">
2284
2212
  <span class="hits">1</span>
2285
2213
 
2286
2214
  <code class="ruby"> def scp_get(host, src, dst, opts={}, &amp;block)</code>
2287
2215
  </li>
2288
2216
 
2289
- <li class="covered" data-hits="25" data-linenumber="367">
2290
- <span class="hits">25</span>
2217
+ <li class="covered" data-hits="17" data-linenumber="355">
2218
+ <span class="hits">17</span>
2291
2219
 
2292
2220
  <code class="ruby"> opts = @opts.merge(opts)</code>
2293
2221
  </li>
2294
2222
 
2295
- <li class="covered" data-hits="25" data-linenumber="368">
2296
- <span class="hits">25</span>
2223
+ <li class="covered" data-hits="17" data-linenumber="356">
2224
+ <span class="hits">17</span>
2297
2225
 
2298
2226
  <code class="ruby"> scp(:download, host, src, dst, opts, &amp;block)</code>
2299
2227
  </li>
2300
2228
 
2301
- <li class="never" data-hits="" data-linenumber="369">
2302
-
2303
-
2304
- <code class="ruby"> end</code>
2305
- </li>
2306
-
2307
- <li class="never" data-hits="" data-linenumber="370">
2308
-
2309
-
2310
- <code class="ruby"></code>
2311
- </li>
2312
-
2313
- <li class="never" data-hits="" data-linenumber="371">
2314
-
2315
-
2316
- <code class="ruby"> # @deprecated Use scp_put instead.</code>
2317
- </li>
2318
-
2319
- <li class="covered" data-hits="1" data-linenumber="372">
2320
- <span class="hits">1</span>
2321
-
2322
- <code class="ruby"> def scp_ul(host, src, dst, opts={}, &amp;block)</code>
2323
- </li>
2324
-
2325
- <li class="covered" data-hits="6" data-linenumber="373">
2326
- <span class="hits">6</span>
2327
-
2328
- <code class="ruby"> warn &quot;[DEPRECATION] Net::SSH::Simple#scp_ul is deprecated. Please use #scp_put instead (usage is identical, the method was only renamed).&quot;</code>
2329
- </li>
2330
-
2331
- <li class="covered" data-hits="6" data-linenumber="374">
2332
- <span class="hits">6</span>
2333
-
2334
- <code class="ruby"> scp_put(host, src, dst, opts, &amp;block)</code>
2335
- </li>
2336
-
2337
- <li class="never" data-hits="" data-linenumber="375">
2338
-
2339
-
2340
- <code class="ruby"> end</code>
2341
- </li>
2342
-
2343
- <li class="never" data-hits="" data-linenumber="376">
2344
-
2345
-
2346
- <code class="ruby"></code>
2347
- </li>
2348
-
2349
- <li class="never" data-hits="" data-linenumber="377">
2350
-
2351
-
2352
- <code class="ruby"> # @deprecated Use scp_get instead.</code>
2353
- </li>
2354
-
2355
- <li class="covered" data-hits="1" data-linenumber="378">
2356
- <span class="hits">1</span>
2357
-
2358
- <code class="ruby"> def scp_dl(host, src, dst, opts={}, &amp;block)</code>
2359
- </li>
2360
-
2361
- <li class="covered" data-hits="6" data-linenumber="379">
2362
- <span class="hits">6</span>
2363
-
2364
- <code class="ruby"> warn &quot;[DEPRECATION] Net::SSH::Simple#scp_dl is deprecated. Please use #scp_get instead (usage is identical, the method was only renamed).&quot;</code>
2365
- </li>
2366
-
2367
- <li class="covered" data-hits="6" data-linenumber="380">
2368
- <span class="hits">6</span>
2369
-
2370
- <code class="ruby"> scp_get(host, src, dst, opts, &amp;block)</code>
2371
- </li>
2372
-
2373
- <li class="never" data-hits="" data-linenumber="381">
2229
+ <li class="never" data-hits="" data-linenumber="357">
2374
2230
 
2375
2231
 
2376
2232
  <code class="ruby"> end</code>
2377
2233
  </li>
2378
2234
 
2379
- <li class="never" data-hits="" data-linenumber="382">
2235
+ <li class="never" data-hits="" data-linenumber="358">
2380
2236
 
2381
2237
 
2382
2238
  <code class="ruby"></code>
2383
2239
  </li>
2384
2240
 
2385
- <li class="never" data-hits="" data-linenumber="383">
2241
+ <li class="never" data-hits="" data-linenumber="359">
2386
2242
 
2387
2243
 
2388
2244
  <code class="ruby"> #</code>
2389
2245
  </li>
2390
2246
 
2391
- <li class="never" data-hits="" data-linenumber="384">
2247
+ <li class="never" data-hits="" data-linenumber="360">
2392
2248
 
2393
2249
 
2394
2250
  <code class="ruby"> # Perform SSH operation on a remote host and capture the result.</code>
2395
2251
  </li>
2396
2252
 
2397
- <li class="never" data-hits="" data-linenumber="385">
2253
+ <li class="never" data-hits="" data-linenumber="361">
2398
2254
 
2399
2255
 
2400
2256
  <code class="ruby"> # The underlying Net::SSH::Simple instance will re-use</code>
2401
2257
  </li>
2402
2258
 
2403
- <li class="never" data-hits="" data-linenumber="386">
2259
+ <li class="never" data-hits="" data-linenumber="362">
2404
2260
 
2405
2261
 
2406
2262
  <code class="ruby"> # existing connections for optimal performance.</code>
2407
2263
  </li>
2408
2264
 
2409
- <li class="never" data-hits="" data-linenumber="387">
2265
+ <li class="never" data-hits="" data-linenumber="363">
2410
2266
 
2411
2267
 
2412
2268
  <code class="ruby"> #</code>
2413
2269
  </li>
2414
2270
 
2415
- <li class="never" data-hits="" data-linenumber="388">
2271
+ <li class="never" data-hits="" data-linenumber="364">
2416
2272
 
2417
2273
 
2418
2274
  <code class="ruby"> # @return [Net::SSH::Simple::Result] Result</code>
2419
2275
  </li>
2420
2276
 
2421
- <li class="never" data-hits="" data-linenumber="389">
2277
+ <li class="never" data-hits="" data-linenumber="365">
2422
2278
 
2423
2279
 
2424
2280
  <code class="ruby"> # @param [String] host Destination hostname or ip-address</code>
2425
2281
  </li>
2426
2282
 
2427
- <li class="never" data-hits="" data-linenumber="390">
2283
+ <li class="never" data-hits="" data-linenumber="366">
2428
2284
 
2429
2285
 
2430
2286
  <code class="ruby"> # @param [String] cmd Shell command to execute</code>
2431
2287
  </li>
2432
2288
 
2433
- <li class="never" data-hits="" data-linenumber="391">
2289
+ <li class="never" data-hits="" data-linenumber="367">
2434
2290
 
2435
2291
 
2436
2292
  <code class="ruby"> # @param [Block] block Use the event-API (see example above)</code>
2437
2293
  </li>
2438
2294
 
2439
- <li class="never" data-hits="" data-linenumber="392">
2295
+ <li class="never" data-hits="" data-linenumber="368">
2440
2296
 
2441
2297
 
2442
2298
  <code class="ruby"> # @param [Hash] opts SSH options</code>
2443
2299
  </li>
2444
2300
 
2445
- <li class="never" data-hits="" data-linenumber="393">
2301
+ <li class="never" data-hits="" data-linenumber="369">
2446
2302
 
2447
2303
 
2448
2304
  <code class="ruby"> # @option opts [Array] :auth_methods</code>
2449
2305
  </li>
2450
2306
 
2451
- <li class="never" data-hits="" data-linenumber="394">
2307
+ <li class="never" data-hits="" data-linenumber="370">
2452
2308
 
2453
2309
 
2454
2310
  <code class="ruby"> # an array of authentication methods to try</code>
2455
2311
  </li>
2456
2312
 
2457
- <li class="never" data-hits="" data-linenumber="395">
2313
+ <li class="never" data-hits="" data-linenumber="371">
2458
2314
 
2459
2315
 
2460
2316
  <code class="ruby"> #</code>
2461
2317
  </li>
2462
2318
 
2463
- <li class="never" data-hits="" data-linenumber="396">
2319
+ <li class="never" data-hits="" data-linenumber="372">
2464
2320
 
2465
2321
 
2466
2322
  <code class="ruby"> # @option opts [String] :compression</code>
2467
2323
  </li>
2468
2324
 
2469
- <li class="never" data-hits="" data-linenumber="397">
2325
+ <li class="never" data-hits="" data-linenumber="373">
2470
2326
 
2471
2327
 
2472
2328
  <code class="ruby"> # the compression algorithm to use,</code>
2473
2329
  </li>
2474
2330
 
2475
- <li class="never" data-hits="" data-linenumber="398">
2331
+ <li class="never" data-hits="" data-linenumber="374">
2476
2332
 
2477
2333
 
2478
2334
  <code class="ruby"> # or true to use whatever is supported.</code>
2479
2335
  </li>
2480
2336
 
2481
- <li class="never" data-hits="" data-linenumber="399">
2337
+ <li class="never" data-hits="" data-linenumber="375">
2482
2338
 
2483
2339
 
2484
2340
  <code class="ruby"> #</code>
2485
2341
  </li>
2486
2342
 
2487
- <li class="never" data-hits="" data-linenumber="400">
2343
+ <li class="never" data-hits="" data-linenumber="376">
2488
2344
 
2489
2345
 
2490
2346
  <code class="ruby"> # @option opts [Number] :compression_level</code>
2491
2347
  </li>
2492
2348
 
2493
- <li class="never" data-hits="" data-linenumber="401">
2349
+ <li class="never" data-hits="" data-linenumber="377">
2494
2350
 
2495
2351
 
2496
2352
  <code class="ruby"> # the compression level to use when sending data</code>
2497
2353
  </li>
2498
2354
 
2499
- <li class="never" data-hits="" data-linenumber="402">
2355
+ <li class="never" data-hits="" data-linenumber="378">
2500
2356
 
2501
2357
 
2502
2358
  <code class="ruby"> #</code>
2503
2359
  </li>
2504
2360
 
2505
- <li class="never" data-hits="" data-linenumber="403">
2361
+ <li class="never" data-hits="" data-linenumber="379">
2506
2362
 
2507
2363
 
2508
2364
  <code class="ruby"> # @option opts [String/boolean] :opts (true)</code>
2509
2365
  </li>
2510
2366
 
2511
- <li class="never" data-hits="" data-linenumber="404">
2367
+ <li class="never" data-hits="" data-linenumber="380">
2512
2368
 
2513
2369
 
2514
2370
  <code class="ruby"> # set to true to load the default OpenSSH opts files</code>
2515
2371
  </li>
2516
2372
 
2517
- <li class="never" data-hits="" data-linenumber="405">
2373
+ <li class="never" data-hits="" data-linenumber="381">
2518
2374
 
2519
2375
 
2520
2376
  <code class="ruby"> # (~/.ssh/opts, /etc/ssh_opts), or to false to not load them,</code>
2521
2377
  </li>
2522
2378
 
2523
- <li class="never" data-hits="" data-linenumber="406">
2379
+ <li class="never" data-hits="" data-linenumber="382">
2524
2380
 
2525
2381
 
2526
2382
  <code class="ruby"> # or to a file-name (or array of file-names) to load those</code>
2527
2383
  </li>
2528
2384
 
2529
- <li class="never" data-hits="" data-linenumber="407">
2385
+ <li class="never" data-hits="" data-linenumber="383">
2530
2386
 
2531
2387
 
2532
2388
  <code class="ruby"> # specific configuration files.</code>
2533
2389
  </li>
2534
2390
 
2535
- <li class="never" data-hits="" data-linenumber="408">
2391
+ <li class="never" data-hits="" data-linenumber="384">
2536
2392
 
2537
2393
 
2538
2394
  <code class="ruby"> #</code>
2539
2395
  </li>
2540
2396
 
2541
- <li class="never" data-hits="" data-linenumber="409">
2397
+ <li class="never" data-hits="" data-linenumber="385">
2542
2398
 
2543
2399
 
2544
2400
  <code class="ruby"> # @option opts [Array] :encryption</code>
2545
2401
  </li>
2546
2402
 
2547
- <li class="never" data-hits="" data-linenumber="410">
2403
+ <li class="never" data-hits="" data-linenumber="386">
2548
2404
 
2549
2405
 
2550
2406
  <code class="ruby"> # the encryption cipher (or ciphers) to use</code>
2551
2407
  </li>
2552
2408
 
2553
- <li class="never" data-hits="" data-linenumber="411">
2409
+ <li class="never" data-hits="" data-linenumber="387">
2554
2410
 
2555
2411
 
2556
2412
  <code class="ruby"> #</code>
2557
2413
  </li>
2558
2414
 
2559
- <li class="never" data-hits="" data-linenumber="412">
2415
+ <li class="never" data-hits="" data-linenumber="388">
2560
2416
 
2561
2417
 
2562
2418
  <code class="ruby"> # @option opts [boolean] :forward_agent</code>
2563
2419
  </li>
2564
2420
 
2565
- <li class="never" data-hits="" data-linenumber="413">
2421
+ <li class="never" data-hits="" data-linenumber="389">
2566
2422
 
2567
2423
 
2568
2424
  <code class="ruby"> # set to true if you want the SSH agent connection to be forwarded</code>
2569
2425
  </li>
2570
2426
 
2571
- <li class="never" data-hits="" data-linenumber="414">
2427
+ <li class="never" data-hits="" data-linenumber="390">
2572
2428
 
2573
2429
 
2574
2430
  <code class="ruby"> #</code>
2575
2431
  </li>
2576
2432
 
2577
- <li class="never" data-hits="" data-linenumber="415">
2433
+ <li class="never" data-hits="" data-linenumber="391">
2578
2434
 
2579
2435
 
2580
2436
  <code class="ruby"> # @option opts [String/Array] :global_known_hosts_file </code>
2581
2437
  </li>
2582
2438
 
2583
- <li class="never" data-hits="" data-linenumber="416">
2439
+ <li class="never" data-hits="" data-linenumber="392">
2584
2440
 
2585
2441
 
2586
2442
  <code class="ruby"> # (['/etc/ssh/known_hosts','/etc/ssh/known_hosts2'])</code>
2587
2443
  </li>
2588
2444
 
2589
- <li class="never" data-hits="" data-linenumber="417">
2445
+ <li class="never" data-hits="" data-linenumber="393">
2590
2446
 
2591
2447
 
2592
2448
  <code class="ruby"> # the location of the global known hosts file.</code>
2593
2449
  </li>
2594
2450
 
2595
- <li class="never" data-hits="" data-linenumber="418">
2451
+ <li class="never" data-hits="" data-linenumber="394">
2596
2452
 
2597
2453
 
2598
2454
  <code class="ruby"> # Set to an array if you want to specify multiple</code>
2599
2455
  </li>
2600
2456
 
2601
- <li class="never" data-hits="" data-linenumber="419">
2457
+ <li class="never" data-hits="" data-linenumber="395">
2602
2458
 
2603
2459
 
2604
2460
  <code class="ruby"> # global known hosts files.</code>
2605
2461
  </li>
2606
2462
 
2607
- <li class="never" data-hits="" data-linenumber="420">
2463
+ <li class="never" data-hits="" data-linenumber="396">
2608
2464
 
2609
2465
 
2610
2466
  <code class="ruby"> #</code>
2611
2467
  </li>
2612
2468
 
2613
- <li class="never" data-hits="" data-linenumber="421">
2469
+ <li class="never" data-hits="" data-linenumber="397">
2614
2470
 
2615
2471
 
2616
2472
  <code class="ruby"> # @option opts [String/Array] :hmac</code>
2617
2473
  </li>
2618
2474
 
2619
- <li class="never" data-hits="" data-linenumber="422">
2475
+ <li class="never" data-hits="" data-linenumber="398">
2620
2476
 
2621
2477
 
2622
2478
  <code class="ruby"> # the hmac algorithm (or algorithms) to use</code>
2623
2479
  </li>
2624
2480
 
2625
- <li class="never" data-hits="" data-linenumber="423">
2481
+ <li class="never" data-hits="" data-linenumber="399">
2626
2482
 
2627
2483
 
2628
2484
  <code class="ruby"> #</code>
2629
2485
  </li>
2630
2486
 
2631
- <li class="never" data-hits="" data-linenumber="424">
2487
+ <li class="never" data-hits="" data-linenumber="400">
2632
2488
 
2633
2489
 
2634
2490
  <code class="ruby"> # @option opts [String] :host_key</code>
2635
2491
  </li>
2636
2492
 
2637
- <li class="never" data-hits="" data-linenumber="425">
2493
+ <li class="never" data-hits="" data-linenumber="401">
2638
2494
 
2639
2495
 
2640
2496
  <code class="ruby"> # the host key algorithm (or algorithms) to use</code>
2641
2497
  </li>
2642
2498
 
2643
- <li class="never" data-hits="" data-linenumber="426">
2499
+ <li class="never" data-hits="" data-linenumber="402">
2644
2500
 
2645
2501
 
2646
2502
  <code class="ruby"> #</code>
2647
2503
  </li>
2648
2504
 
2649
- <li class="never" data-hits="" data-linenumber="427">
2505
+ <li class="never" data-hits="" data-linenumber="403">
2650
2506
 
2651
2507
 
2652
2508
  <code class="ruby"> # @option opts [String] :host_key_alias</code>
2653
2509
  </li>
2654
2510
 
2655
- <li class="never" data-hits="" data-linenumber="428">
2511
+ <li class="never" data-hits="" data-linenumber="404">
2656
2512
 
2657
2513
 
2658
2514
  <code class="ruby"> # the host name to use when looking up or adding a host to a known_hosts dictionary file</code>
2659
2515
  </li>
2660
2516
 
2661
- <li class="never" data-hits="" data-linenumber="429">
2517
+ <li class="never" data-hits="" data-linenumber="405">
2662
2518
 
2663
2519
 
2664
2520
  <code class="ruby"> #</code>
2665
2521
  </li>
2666
2522
 
2667
- <li class="never" data-hits="" data-linenumber="430">
2523
+ <li class="never" data-hits="" data-linenumber="406">
2668
2524
 
2669
2525
 
2670
2526
  <code class="ruby"> # @option opts [String] :host_name</code>
2671
2527
  </li>
2672
2528
 
2673
- <li class="never" data-hits="" data-linenumber="431">
2529
+ <li class="never" data-hits="" data-linenumber="407">
2674
2530
 
2675
2531
 
2676
2532
  <code class="ruby"> # the real host name or IP to log into. This is used instead of the host parameter,</code>
2677
2533
  </li>
2678
2534
 
2679
- <li class="never" data-hits="" data-linenumber="432">
2535
+ <li class="never" data-hits="" data-linenumber="408">
2680
2536
 
2681
2537
 
2682
2538
  <code class="ruby"> # and is primarily only useful when specified in an SSH configuration file.</code>
2683
2539
  </li>
2684
2540
 
2685
- <li class="never" data-hits="" data-linenumber="433">
2541
+ <li class="never" data-hits="" data-linenumber="409">
2686
2542
 
2687
2543
 
2688
2544
  <code class="ruby"> # It lets you specify an alias, similarly to adding an entry in /etc/hosts but</code>
2689
2545
  </li>
2690
2546
 
2691
- <li class="never" data-hits="" data-linenumber="434">
2547
+ <li class="never" data-hits="" data-linenumber="410">
2692
2548
 
2693
2549
 
2694
2550
  <code class="ruby"> # without needing to modify /etc/hosts.</code>
2695
2551
  </li>
2696
2552
 
2697
- <li class="never" data-hits="" data-linenumber="435">
2553
+ <li class="never" data-hits="" data-linenumber="411">
2698
2554
 
2699
2555
 
2700
2556
  <code class="ruby"> #</code>
2701
2557
  </li>
2702
2558
 
2703
- <li class="never" data-hits="" data-linenumber="436">
2559
+ <li class="never" data-hits="" data-linenumber="412">
2704
2560
 
2705
2561
 
2706
2562
  <code class="ruby"> # @option opts [String/Array] :kex</code>
2707
2563
  </li>
2708
2564
 
2709
- <li class="never" data-hits="" data-linenumber="437">
2565
+ <li class="never" data-hits="" data-linenumber="413">
2710
2566
 
2711
2567
 
2712
2568
  <code class="ruby"> # the key exchange algorithm (or algorithms) to use</code>
2713
2569
  </li>
2714
2570
 
2715
- <li class="never" data-hits="" data-linenumber="438">
2571
+ <li class="never" data-hits="" data-linenumber="414">
2716
2572
 
2717
2573
 
2718
2574
  <code class="ruby"> #</code>
2719
2575
  </li>
2720
2576
 
2721
- <li class="never" data-hits="" data-linenumber="439">
2577
+ <li class="never" data-hits="" data-linenumber="415">
2722
2578
 
2723
2579
 
2724
2580
  <code class="ruby"> # @option opts [Array] :keys</code>
2725
2581
  </li>
2726
2582
 
2727
- <li class="never" data-hits="" data-linenumber="440">
2583
+ <li class="never" data-hits="" data-linenumber="416">
2728
2584
 
2729
2585
 
2730
2586
  <code class="ruby"> # an array of file names of private keys to use for publickey and hostbased authentication</code>
2731
2587
  </li>
2732
2588
 
2733
- <li class="never" data-hits="" data-linenumber="441">
2589
+ <li class="never" data-hits="" data-linenumber="417">
2734
2590
 
2735
2591
 
2736
2592
  <code class="ruby"> #</code>
2737
2593
  </li>
2738
2594
 
2739
- <li class="never" data-hits="" data-linenumber="442">
2595
+ <li class="never" data-hits="" data-linenumber="418">
2740
2596
 
2741
2597
 
2742
2598
  <code class="ruby"> # @option opts [Array] :key_data</code>
2743
2599
  </li>
2744
2600
 
2745
- <li class="never" data-hits="" data-linenumber="443">
2601
+ <li class="never" data-hits="" data-linenumber="419">
2746
2602
 
2747
2603
 
2748
2604
  <code class="ruby"> # an array of strings, with each element of the array being a raw private key in PEM format.</code>
2749
2605
  </li>
2750
2606
 
2751
- <li class="never" data-hits="" data-linenumber="444">
2607
+ <li class="never" data-hits="" data-linenumber="420">
2752
2608
 
2753
2609
 
2754
2610
  <code class="ruby"> #</code>
2755
2611
  </li>
2756
2612
 
2757
- <li class="never" data-hits="" data-linenumber="445">
2613
+ <li class="never" data-hits="" data-linenumber="421">
2758
2614
 
2759
2615
 
2760
2616
  <code class="ruby"> # @option opts [boolean] :keys_only</code>
2761
2617
  </li>
2762
2618
 
2763
- <li class="never" data-hits="" data-linenumber="446">
2619
+ <li class="never" data-hits="" data-linenumber="422">
2764
2620
 
2765
2621
 
2766
2622
  <code class="ruby"> # set to true to use only private keys from keys and key_data parameters, even if</code>
2767
2623
  </li>
2768
2624
 
2769
- <li class="never" data-hits="" data-linenumber="447">
2625
+ <li class="never" data-hits="" data-linenumber="423">
2770
2626
 
2771
2627
 
2772
2628
  <code class="ruby"> # ssh-agent offers more identities. This option is intended for situations where</code>
2773
2629
  </li>
2774
2630
 
2775
- <li class="never" data-hits="" data-linenumber="448">
2631
+ <li class="never" data-hits="" data-linenumber="424">
2776
2632
 
2777
2633
 
2778
2634
  <code class="ruby"> # ssh-agent offers many different identites.</code>
2779
2635
  </li>
2780
2636
 
2781
- <li class="never" data-hits="" data-linenumber="449">
2637
+ <li class="never" data-hits="" data-linenumber="425">
2782
2638
 
2783
2639
 
2784
2640
  <code class="ruby"> #</code>
2785
2641
  </li>
2786
2642
 
2787
- <li class="never" data-hits="" data-linenumber="450">
2643
+ <li class="never" data-hits="" data-linenumber="426">
2788
2644
 
2789
2645
 
2790
2646
  <code class="ruby"> # @option opts [Logger] :logger</code>
2791
2647
  </li>
2792
2648
 
2793
- <li class="never" data-hits="" data-linenumber="451">
2649
+ <li class="never" data-hits="" data-linenumber="427">
2794
2650
 
2795
2651
 
2796
2652
  <code class="ruby"> # the logger instance to use when logging</code>
2797
2653
  </li>
2798
2654
 
2799
- <li class="never" data-hits="" data-linenumber="452">
2655
+ <li class="never" data-hits="" data-linenumber="428">
2800
2656
 
2801
2657
 
2802
2658
  <code class="ruby"> #</code>
2803
2659
  </li>
2804
2660
 
2805
- <li class="never" data-hits="" data-linenumber="453">
2661
+ <li class="never" data-hits="" data-linenumber="429">
2806
2662
 
2807
2663
 
2808
2664
  <code class="ruby"> # @option opts [boolean/:very] :paranoid</code>
2809
2665
  </li>
2810
2666
 
2811
- <li class="never" data-hits="" data-linenumber="454">
2667
+ <li class="never" data-hits="" data-linenumber="430">
2812
2668
 
2813
2669
 
2814
2670
  <code class="ruby"> # either true, false, or :very, specifying how strict host-key verification should be</code>
2815
2671
  </li>
2816
2672
 
2817
- <li class="never" data-hits="" data-linenumber="455">
2673
+ <li class="never" data-hits="" data-linenumber="431">
2818
2674
 
2819
2675
 
2820
2676
  <code class="ruby"> #</code>
2821
2677
  </li>
2822
2678
 
2823
- <li class="never" data-hits="" data-linenumber="456">
2679
+ <li class="never" data-hits="" data-linenumber="432">
2824
2680
 
2825
2681
 
2826
2682
  <code class="ruby"> # @option opts [String] :passphrase (nil)</code>
2827
2683
  </li>
2828
2684
 
2829
- <li class="never" data-hits="" data-linenumber="457">
2685
+ <li class="never" data-hits="" data-linenumber="433">
2830
2686
 
2831
2687
 
2832
2688
  <code class="ruby"> # the passphrase to use when loading a private key (default is nil, for no passphrase)</code>
2833
2689
  </li>
2834
2690
 
2835
- <li class="never" data-hits="" data-linenumber="458">
2691
+ <li class="never" data-hits="" data-linenumber="434">
2836
2692
 
2837
2693
 
2838
2694
  <code class="ruby"> #</code>
2839
2695
  </li>
2840
2696
 
2841
- <li class="never" data-hits="" data-linenumber="459">
2697
+ <li class="never" data-hits="" data-linenumber="435">
2842
2698
 
2843
2699
 
2844
2700
  <code class="ruby"> # @option opts [String] :password</code>
2845
2701
  </li>
2846
2702
 
2847
- <li class="never" data-hits="" data-linenumber="460">
2703
+ <li class="never" data-hits="" data-linenumber="436">
2848
2704
 
2849
2705
 
2850
2706
  <code class="ruby"> # the password to use to login</code>
2851
2707
  </li>
2852
2708
 
2853
- <li class="never" data-hits="" data-linenumber="461">
2709
+ <li class="never" data-hits="" data-linenumber="437">
2854
2710
 
2855
2711
 
2856
2712
  <code class="ruby"> #</code>
2857
2713
  </li>
2858
2714
 
2859
- <li class="never" data-hits="" data-linenumber="462">
2715
+ <li class="never" data-hits="" data-linenumber="438">
2860
2716
 
2861
2717
 
2862
2718
  <code class="ruby"> # @option opts [Integer] :port</code>
2863
2719
  </li>
2864
2720
 
2865
- <li class="never" data-hits="" data-linenumber="463">
2721
+ <li class="never" data-hits="" data-linenumber="439">
2866
2722
 
2867
2723
 
2868
2724
  <code class="ruby"> # the port to use when connecting to the remote host</code>
2869
2725
  </li>
2870
2726
 
2871
- <li class="never" data-hits="" data-linenumber="464">
2727
+ <li class="never" data-hits="" data-linenumber="440">
2872
2728
 
2873
2729
 
2874
2730
  <code class="ruby"> #</code>
2875
2731
  </li>
2876
2732
 
2877
- <li class="never" data-hits="" data-linenumber="465">
2733
+ <li class="never" data-hits="" data-linenumber="441">
2878
2734
 
2879
2735
 
2880
2736
  <code class="ruby"> # @option opts [Hash] :properties</code>
2881
2737
  </li>
2882
2738
 
2883
- <li class="never" data-hits="" data-linenumber="466">
2739
+ <li class="never" data-hits="" data-linenumber="442">
2884
2740
 
2885
2741
 
2886
2742
  <code class="ruby"> # a hash of key/value pairs to add to the new connection's properties</code>
2887
2743
  </li>
2888
2744
 
2889
- <li class="never" data-hits="" data-linenumber="467">
2745
+ <li class="never" data-hits="" data-linenumber="443">
2890
2746
 
2891
2747
 
2892
2748
  <code class="ruby"> # (see Net::SSH::Connection::Session#properties)</code>
2893
2749
  </li>
2894
2750
 
2895
- <li class="never" data-hits="" data-linenumber="468">
2751
+ <li class="never" data-hits="" data-linenumber="444">
2896
2752
 
2897
2753
 
2898
2754
  <code class="ruby"> #</code>
2899
2755
  </li>
2900
2756
 
2901
- <li class="never" data-hits="" data-linenumber="469">
2757
+ <li class="never" data-hits="" data-linenumber="445">
2902
2758
 
2903
2759
 
2904
2760
  <code class="ruby"> # @option opts [String] :proxy</code>
2905
2761
  </li>
2906
2762
 
2907
- <li class="never" data-hits="" data-linenumber="470">
2763
+ <li class="never" data-hits="" data-linenumber="446">
2908
2764
 
2909
2765
 
2910
2766
  <code class="ruby"> # a proxy instance (see Proxy) to use when connecting</code>
2911
2767
  </li>
2912
2768
 
2913
- <li class="never" data-hits="" data-linenumber="471">
2769
+ <li class="never" data-hits="" data-linenumber="447">
2914
2770
 
2915
2771
 
2916
2772
  <code class="ruby"> #</code>
2917
2773
  </li>
2918
2774
 
2919
- <li class="never" data-hits="" data-linenumber="472">
2775
+ <li class="never" data-hits="" data-linenumber="448">
2920
2776
 
2921
2777
 
2922
2778
  <code class="ruby"> # @option opts [Integer] :rekey_blocks_limit</code>
2923
2779
  </li>
2924
2780
 
2925
- <li class="never" data-hits="" data-linenumber="473">
2781
+ <li class="never" data-hits="" data-linenumber="449">
2926
2782
 
2927
2783
 
2928
2784
  <code class="ruby"> # the max number of blocks to process before rekeying</code>
2929
2785
  </li>
2930
2786
 
2931
- <li class="never" data-hits="" data-linenumber="474">
2787
+ <li class="never" data-hits="" data-linenumber="450">
2932
2788
 
2933
2789
 
2934
2790
  <code class="ruby"> #</code>
2935
2791
  </li>
2936
2792
 
2937
- <li class="never" data-hits="" data-linenumber="475">
2793
+ <li class="never" data-hits="" data-linenumber="451">
2938
2794
 
2939
2795
 
2940
2796
  <code class="ruby"> # @option opts [Integer] :rekey_limit</code>
2941
2797
  </li>
2942
2798
 
2943
- <li class="never" data-hits="" data-linenumber="476">
2799
+ <li class="never" data-hits="" data-linenumber="452">
2944
2800
 
2945
2801
 
2946
2802
  <code class="ruby"> # the max number of bytes to process before rekeying</code>
2947
2803
  </li>
2948
2804
 
2949
- <li class="never" data-hits="" data-linenumber="477">
2805
+ <li class="never" data-hits="" data-linenumber="453">
2950
2806
 
2951
2807
 
2952
2808
  <code class="ruby"> #</code>
2953
2809
  </li>
2954
2810
 
2955
- <li class="never" data-hits="" data-linenumber="478">
2811
+ <li class="never" data-hits="" data-linenumber="454">
2956
2812
 
2957
2813
 
2958
2814
  <code class="ruby"> # @option opts [Integer] :rekey_packet_limit</code>
2959
2815
  </li>
2960
2816
 
2961
- <li class="never" data-hits="" data-linenumber="479">
2817
+ <li class="never" data-hits="" data-linenumber="455">
2962
2818
 
2963
2819
 
2964
2820
  <code class="ruby"> # the max number of packets to process before rekeying</code>
2965
2821
  </li>
2966
2822
 
2967
- <li class="never" data-hits="" data-linenumber="480">
2823
+ <li class="never" data-hits="" data-linenumber="456">
2968
2824
 
2969
2825
 
2970
2826
  <code class="ruby"> #</code>
2971
2827
  </li>
2972
2828
 
2973
- <li class="never" data-hits="" data-linenumber="481">
2829
+ <li class="never" data-hits="" data-linenumber="457">
2974
2830
 
2975
2831
 
2976
2832
  <code class="ruby"> # @option opts [Integer] :timeout (60)</code>
2977
2833
  </li>
2978
2834
 
2979
- <li class="never" data-hits="" data-linenumber="482">
2835
+ <li class="never" data-hits="" data-linenumber="458">
2980
2836
 
2981
2837
 
2982
2838
  <code class="ruby"> # maximum idle time before a connection will time out (0 = disable).</code>
2983
2839
  </li>
2984
2840
 
2985
- <li class="never" data-hits="" data-linenumber="483">
2841
+ <li class="never" data-hits="" data-linenumber="459">
2986
2842
 
2987
2843
 
2988
2844
  <code class="ruby"> #</code>
2989
2845
  </li>
2990
2846
 
2991
- <li class="never" data-hits="" data-linenumber="484">
2847
+ <li class="never" data-hits="" data-linenumber="460">
2992
2848
 
2993
2849
 
2994
2850
  <code class="ruby"> # @option opts [Integer] :operation_timeout (3600)</code>
2995
2851
  </li>
2996
2852
 
2997
- <li class="never" data-hits="" data-linenumber="485">
2853
+ <li class="never" data-hits="" data-linenumber="461">
2998
2854
 
2999
2855
 
3000
2856
  <code class="ruby"> # maximum time before aborting an operation (0 = disable).</code>
3001
2857
  </li>
3002
2858
 
3003
- <li class="never" data-hits="" data-linenumber="486">
2859
+ <li class="never" data-hits="" data-linenumber="462">
3004
2860
 
3005
2861
 
3006
2862
  <code class="ruby"> # you may use this to guard against run-away processes.</code>
3007
2863
  </li>
3008
2864
 
3009
- <li class="never" data-hits="" data-linenumber="487">
2865
+ <li class="never" data-hits="" data-linenumber="463">
3010
2866
 
3011
2867
 
3012
2868
  <code class="ruby"> #</code>
3013
2869
  </li>
3014
2870
 
3015
- <li class="never" data-hits="" data-linenumber="488">
2871
+ <li class="never" data-hits="" data-linenumber="464">
3016
2872
 
3017
2873
 
3018
2874
  <code class="ruby"> # @option opts [Integer] :keepalive_interval (60)</code>
3019
2875
  </li>
3020
2876
 
3021
- <li class="never" data-hits="" data-linenumber="489">
2877
+ <li class="never" data-hits="" data-linenumber="465">
3022
2878
 
3023
2879
 
3024
2880
  <code class="ruby"> # send keep-alive probes at this interval to prevent connections</code>
3025
2881
  </li>
3026
2882
 
3027
- <li class="never" data-hits="" data-linenumber="490">
2883
+ <li class="never" data-hits="" data-linenumber="466">
3028
2884
 
3029
2885
 
3030
2886
  <code class="ruby"> # from timing out unexpectedly.</code>
3031
2887
  </li>
3032
2888
 
3033
- <li class="never" data-hits="" data-linenumber="491">
2889
+ <li class="never" data-hits="" data-linenumber="467">
3034
2890
 
3035
2891
 
3036
2892
  <code class="ruby"> #</code>
3037
2893
  </li>
3038
2894
 
3039
- <li class="never" data-hits="" data-linenumber="492">
2895
+ <li class="never" data-hits="" data-linenumber="468">
3040
2896
 
3041
2897
 
3042
2898
  <code class="ruby"> # @option opts [Integer] :close_timeout (5)</code>
3043
2899
  </li>
3044
2900
 
3045
- <li class="never" data-hits="" data-linenumber="493">
2901
+ <li class="never" data-hits="" data-linenumber="469">
3046
2902
 
3047
2903
 
3048
2904
  <code class="ruby"> # grace-period on close before the connection will be terminated forcefully</code>
3049
2905
  </li>
3050
2906
 
3051
- <li class="never" data-hits="" data-linenumber="494">
2907
+ <li class="never" data-hits="" data-linenumber="470">
3052
2908
 
3053
2909
 
3054
2910
  <code class="ruby"> # (0 = terminate immediately).</code>
3055
2911
  </li>
3056
2912
 
3057
- <li class="never" data-hits="" data-linenumber="495">
2913
+ <li class="never" data-hits="" data-linenumber="471">
3058
2914
 
3059
2915
 
3060
2916
  <code class="ruby"> #</code>
3061
2917
  </li>
3062
2918
 
3063
- <li class="never" data-hits="" data-linenumber="496">
2919
+ <li class="never" data-hits="" data-linenumber="472">
3064
2920
 
3065
2921
 
3066
2922
  <code class="ruby"> # @option opts [String] :user</code>
3067
2923
  </li>
3068
2924
 
3069
- <li class="never" data-hits="" data-linenumber="497">
2925
+ <li class="never" data-hits="" data-linenumber="473">
3070
2926
 
3071
2927
 
3072
2928
  <code class="ruby"> # the username to log in as</code>
3073
2929
  </li>
3074
2930
 
3075
- <li class="never" data-hits="" data-linenumber="498">
2931
+ <li class="never" data-hits="" data-linenumber="474">
3076
2932
 
3077
2933
 
3078
2934
  <code class="ruby"> #</code>
3079
2935
  </li>
3080
2936
 
3081
- <li class="never" data-hits="" data-linenumber="499">
2937
+ <li class="never" data-hits="" data-linenumber="475">
3082
2938
 
3083
2939
 
3084
2940
  <code class="ruby"> # @option opts [String/Array] :user_known_hosts_file</code>
3085
2941
  </li>
3086
2942
 
3087
- <li class="never" data-hits="" data-linenumber="500">
2943
+ <li class="never" data-hits="" data-linenumber="476">
3088
2944
 
3089
2945
 
3090
2946
  <code class="ruby"> # (['~/.ssh/known_hosts, ~/.ssh/known_hosts2'])</code>
3091
2947
  </li>
3092
2948
 
3093
- <li class="never" data-hits="" data-linenumber="501">
2949
+ <li class="never" data-hits="" data-linenumber="477">
3094
2950
 
3095
2951
 
3096
2952
  <code class="ruby"> # the location of the user known hosts file. Set to an array to specify multiple</code>
3097
2953
  </li>
3098
2954
 
3099
- <li class="never" data-hits="" data-linenumber="502">
2955
+ <li class="never" data-hits="" data-linenumber="478">
3100
2956
 
3101
2957
 
3102
2958
  <code class="ruby"> # user known hosts files.</code>
3103
2959
  </li>
3104
2960
 
3105
- <li class="never" data-hits="" data-linenumber="503">
2961
+ <li class="never" data-hits="" data-linenumber="479">
3106
2962
 
3107
2963
 
3108
2964
  <code class="ruby"> #</code>
3109
2965
  </li>
3110
2966
 
3111
- <li class="never" data-hits="" data-linenumber="504">
2967
+ <li class="never" data-hits="" data-linenumber="480">
3112
2968
 
3113
2969
 
3114
2970
  <code class="ruby"> # @option opts [Symbol] :verbose</code>
3115
2971
  </li>
3116
2972
 
3117
- <li class="never" data-hits="" data-linenumber="505">
2973
+ <li class="never" data-hits="" data-linenumber="481">
3118
2974
 
3119
2975
 
3120
2976
  <code class="ruby"> # how verbose to be (Logger verbosity constants, Logger::DEBUG is very verbose,</code>
3121
2977
  </li>
3122
2978
 
3123
- <li class="never" data-hits="" data-linenumber="506">
2979
+ <li class="never" data-hits="" data-linenumber="482">
3124
2980
 
3125
2981
 
3126
2982
  <code class="ruby"> # Logger::FATAL is all but silent). Logger::FATAL is the default. The symbols</code>
3127
2983
  </li>
3128
2984
 
3129
- <li class="never" data-hits="" data-linenumber="507">
2985
+ <li class="never" data-hits="" data-linenumber="483">
3130
2986
 
3131
2987
 
3132
2988
  <code class="ruby"> # :debug, :info, :warn, :error, and :fatal are also supported and are translated</code>
3133
2989
  </li>
3134
2990
 
3135
- <li class="never" data-hits="" data-linenumber="508">
2991
+ <li class="never" data-hits="" data-linenumber="484">
3136
2992
 
3137
2993
 
3138
2994
  <code class="ruby"> # to the corresponding Logger constant.</code>
3139
2995
  </li>
3140
2996
 
3141
- <li class="never" data-hits="" data-linenumber="509">
2997
+ <li class="never" data-hits="" data-linenumber="485">
3142
2998
 
3143
2999
 
3144
3000
  <code class="ruby"> #</code>
3145
3001
  </li>
3146
3002
 
3147
- <li class="never" data-hits="" data-linenumber="510">
3003
+ <li class="never" data-hits="" data-linenumber="486">
3148
3004
 
3149
3005
 
3150
3006
  <code class="ruby"> # @see http://net-ssh.github.com/ssh/v2/api/classes/Net/SSH.html#M000002 </code>
3151
3007
  </li>
3152
3008
 
3153
- <li class="never" data-hits="" data-linenumber="511">
3009
+ <li class="never" data-hits="" data-linenumber="487">
3154
3010
 
3155
3011
 
3156
3012
  <code class="ruby"> # Net::SSH documentation for the 'opts'-hash</code>
3157
3013
  </li>
3158
3014
 
3159
- <li class="covered" data-hits="1" data-linenumber="512">
3015
+ <li class="covered" data-hits="1" data-linenumber="488">
3160
3016
  <span class="hits">1</span>
3161
3017
 
3162
3018
  <code class="ruby"> def ssh(host, cmd, opts={}, &amp;block)</code>
3163
3019
  </li>
3164
3020
 
3165
- <li class="covered" data-hits="68" data-linenumber="513">
3021
+ <li class="covered" data-hits="68" data-linenumber="489">
3166
3022
  <span class="hits">68</span>
3167
3023
 
3168
3024
  <code class="ruby"> opts = @opts.merge(opts)</code>
3169
3025
  </li>
3170
3026
 
3171
- <li class="covered" data-hits="68" data-linenumber="514">
3027
+ <li class="covered" data-hits="68" data-linenumber="490">
3172
3028
  <span class="hits">68</span>
3173
3029
 
3174
3030
  <code class="ruby"> with_session(host, opts) do |session|</code>
3175
3031
  </li>
3176
3032
 
3177
- <li class="covered" data-hits="67" data-linenumber="515">
3033
+ <li class="covered" data-hits="67" data-linenumber="491">
3178
3034
  <span class="hits">67</span>
3179
3035
 
3180
3036
  <code class="ruby"> @result = Result.new(</code>
3181
3037
  </li>
3182
3038
 
3183
- <li class="never" data-hits="" data-linenumber="516">
3039
+ <li class="never" data-hits="" data-linenumber="492">
3184
3040
 
3185
3041
 
3186
3042
  <code class="ruby"> { :op =&gt; :ssh, :host =&gt; host, :cmd =&gt; cmd, :start_at =&gt; Time.new,</code>
3187
3043
  </li>
3188
3044
 
3189
- <li class="never" data-hits="" data-linenumber="517">
3045
+ <li class="never" data-hits="" data-linenumber="493">
3190
3046
 
3191
3047
 
3192
3048
  <code class="ruby"> :last_event_at =&gt; Time.new, :opts =&gt; opts, :stdout =&gt; '', :stderr =&gt; '',</code>
3193
3049
  </li>
3194
3050
 
3195
- <li class="never" data-hits="" data-linenumber="518">
3051
+ <li class="never" data-hits="" data-linenumber="494">
3196
3052
 
3197
3053
 
3198
3054
  <code class="ruby"> :success =&gt; nil </code>
3199
3055
  </li>
3200
3056
 
3201
- <li class="never" data-hits="" data-linenumber="519">
3057
+ <li class="never" data-hits="" data-linenumber="495">
3202
3058
 
3203
3059
 
3204
3060
  <code class="ruby"> } )</code>
3205
3061
  </li>
3206
3062
 
3207
- <li class="never" data-hits="" data-linenumber="520">
3063
+ <li class="never" data-hits="" data-linenumber="496">
3208
3064
 
3209
3065
 
3210
3066
  <code class="ruby"></code>
3211
3067
  </li>
3212
3068
 
3213
- <li class="covered" data-hits="67" data-linenumber="521">
3069
+ <li class="covered" data-hits="67" data-linenumber="497">
3214
3070
  <span class="hits">67</span>
3215
3071
 
3216
3072
  <code class="ruby"> channel = session.open_channel do |chan|</code>
3217
3073
  </li>
3218
3074
 
3219
- <li class="covered" data-hits="67" data-linenumber="522">
3075
+ <li class="covered" data-hits="67" data-linenumber="498">
3220
3076
  <span class="hits">67</span>
3221
3077
 
3222
3078
  <code class="ruby"> chan.exec cmd do |ch, success|</code>
3223
3079
  </li>
3224
3080
 
3225
- <li class="covered" data-hits="67" data-linenumber="523">
3081
+ <li class="covered" data-hits="67" data-linenumber="499">
3226
3082
  <span class="hits">67</span>
3227
3083
 
3228
3084
  <code class="ruby"> @result[:success] = success</code>
3229
3085
  </li>
3230
3086
 
3231
- <li class="covered" data-hits="67" data-linenumber="524">
3087
+ <li class="covered" data-hits="67" data-linenumber="500">
3232
3088
  <span class="hits">67</span>
3233
3089
 
3234
3090
  <code class="ruby"> ch.on_data do |c, data|</code>
3235
3091
  </li>
3236
3092
 
3237
- <li class="covered" data-hits="991" data-linenumber="525">
3238
- <span class="hits">991</span>
3093
+ <li class="covered" data-hits="571" data-linenumber="501">
3094
+ <span class="hits">571</span>
3239
3095
 
3240
3096
  <code class="ruby"> @result[:last_event_at] = Time.new</code>
3241
3097
  </li>
3242
3098
 
3243
- <li class="covered" data-hits="991" data-linenumber="526">
3244
- <span class="hits">991</span>
3099
+ <li class="covered" data-hits="571" data-linenumber="502">
3100
+ <span class="hits">571</span>
3245
3101
 
3246
3102
  <code class="ruby"> r = block.call(:stdout, ch, data) if block</code>
3247
3103
  </li>
3248
3104
 
3249
- <li class="covered" data-hits="991" data-linenumber="527">
3250
- <span class="hits">991</span>
3105
+ <li class="covered" data-hits="571" data-linenumber="503">
3106
+ <span class="hits">571</span>
3251
3107
 
3252
3108
  <code class="ruby"> @result[:stdout] += data.to_s unless r == :no_append</code>
3253
3109
  </li>
3254
3110
 
3255
- <li class="never" data-hits="" data-linenumber="528">
3111
+ <li class="never" data-hits="" data-linenumber="504">
3256
3112
 
3257
3113
 
3258
3114
  <code class="ruby"> end</code>
3259
3115
  </li>
3260
3116
 
3261
- <li class="covered" data-hits="67" data-linenumber="529">
3117
+ <li class="covered" data-hits="67" data-linenumber="505">
3262
3118
  <span class="hits">67</span>
3263
3119
 
3264
3120
  <code class="ruby"> ch.on_extended_data do |c, type, data|</code>
3265
3121
  </li>
3266
3122
 
3267
- <li class="covered" data-hits="957" data-linenumber="530">
3268
- <span class="hits">957</span>
3123
+ <li class="covered" data-hits="520" data-linenumber="506">
3124
+ <span class="hits">520</span>
3269
3125
 
3270
3126
  <code class="ruby"> @result[:last_event_at] = Time.new</code>
3271
3127
  </li>
3272
3128
 
3273
- <li class="covered" data-hits="957" data-linenumber="531">
3274
- <span class="hits">957</span>
3129
+ <li class="covered" data-hits="520" data-linenumber="507">
3130
+ <span class="hits">520</span>
3275
3131
 
3276
3132
  <code class="ruby"> r = block.call(:stderr, ch, data) if block</code>
3277
3133
  </li>
3278
3134
 
3279
- <li class="covered" data-hits="957" data-linenumber="532">
3280
- <span class="hits">957</span>
3135
+ <li class="covered" data-hits="520" data-linenumber="508">
3136
+ <span class="hits">520</span>
3281
3137
 
3282
3138
  <code class="ruby"> @result[:stderr] += data.to_s unless r == :no_append</code>
3283
3139
  </li>
3284
3140
 
3285
- <li class="never" data-hits="" data-linenumber="533">
3141
+ <li class="never" data-hits="" data-linenumber="509">
3286
3142
 
3287
3143
 
3288
3144
  <code class="ruby"> end</code>
3289
3145
  </li>
3290
3146
 
3291
- <li class="covered" data-hits="67" data-linenumber="534">
3147
+ <li class="covered" data-hits="67" data-linenumber="510">
3292
3148
  <span class="hits">67</span>
3293
3149
 
3294
3150
  <code class="ruby"> ch.on_request('exit-status') do |c, data|</code>
3295
3151
  </li>
3296
3152
 
3297
- <li class="covered" data-hits="62" data-linenumber="535">
3153
+ <li class="covered" data-hits="62" data-linenumber="511">
3298
3154
  <span class="hits">62</span>
3299
3155
 
3300
3156
  <code class="ruby"> @result[:last_event_at] = Time.new</code>
3301
3157
  </li>
3302
3158
 
3303
- <li class="covered" data-hits="62" data-linenumber="536">
3159
+ <li class="covered" data-hits="62" data-linenumber="512">
3304
3160
  <span class="hits">62</span>
3305
3161
 
3306
3162
  <code class="ruby"> exit_code = data.read_long</code>
3307
3163
  </li>
3308
3164
 
3309
- <li class="covered" data-hits="62" data-linenumber="537">
3165
+ <li class="covered" data-hits="62" data-linenumber="513">
3310
3166
  <span class="hits">62</span>
3311
3167
 
3312
3168
  <code class="ruby"> block.call(:exit_code, ch, exit_code) if block</code>
3313
3169
  </li>
3314
3170
 
3315
- <li class="covered" data-hits="62" data-linenumber="538">
3171
+ <li class="covered" data-hits="62" data-linenumber="514">
3316
3172
  <span class="hits">62</span>
3317
3173
 
3318
3174
  <code class="ruby"> @result[:exit_code] = exit_code</code>
3319
3175
  </li>
3320
3176
 
3321
- <li class="never" data-hits="" data-linenumber="539">
3177
+ <li class="never" data-hits="" data-linenumber="515">
3322
3178
 
3323
3179
 
3324
3180
  <code class="ruby"> end</code>
3325
3181
  </li>
3326
3182
 
3327
- <li class="covered" data-hits="67" data-linenumber="540">
3183
+ <li class="covered" data-hits="67" data-linenumber="516">
3328
3184
  <span class="hits">67</span>
3329
3185
 
3330
3186
  <code class="ruby"> ch.on_request('exit-signal') do |c, data|</code>
3331
3187
  </li>
3332
3188
 
3333
- <li class="covered" data-hits="3" data-linenumber="541">
3189
+ <li class="covered" data-hits="3" data-linenumber="517">
3334
3190
  <span class="hits">3</span>
3335
3191
 
3336
3192
  <code class="ruby"> @result[:last_event_at] = Time.new</code>
3337
3193
  </li>
3338
3194
 
3339
- <li class="covered" data-hits="3" data-linenumber="542">
3195
+ <li class="covered" data-hits="3" data-linenumber="518">
3340
3196
  <span class="hits">3</span>
3341
3197
 
3342
3198
  <code class="ruby"> exit_signal = data.read_string</code>
3343
3199
  </li>
3344
3200
 
3345
- <li class="covered" data-hits="3" data-linenumber="543">
3201
+ <li class="covered" data-hits="3" data-linenumber="519">
3346
3202
  <span class="hits">3</span>
3347
3203
 
3348
3204
  <code class="ruby"> r = block.call(:exit_signal, ch, exit_signal) if block</code>
3349
3205
  </li>
3350
3206
 
3351
- <li class="covered" data-hits="3" data-linenumber="544">
3207
+ <li class="covered" data-hits="3" data-linenumber="520">
3352
3208
  <span class="hits">3</span>
3353
3209
 
3354
3210
  <code class="ruby"> @result[:exit_signal] = exit_signal</code>
3355
3211
  </li>
3356
3212
 
3357
- <li class="covered" data-hits="3" data-linenumber="545">
3213
+ <li class="covered" data-hits="3" data-linenumber="521">
3358
3214
  <span class="hits">3</span>
3359
3215
 
3360
3216
  <code class="ruby"> @result[:success] = false</code>
3361
3217
  </li>
3362
3218
 
3363
- <li class="covered" data-hits="3" data-linenumber="546">
3219
+ <li class="covered" data-hits="3" data-linenumber="522">
3364
3220
  <span class="hits">3</span>
3365
3221
 
3366
3222
  <code class="ruby"> unless r == :no_raise</code>
3367
3223
  </li>
3368
3224
 
3369
- <li class="covered" data-hits="2" data-linenumber="547">
3225
+ <li class="covered" data-hits="2" data-linenumber="523">
3370
3226
  <span class="hits">2</span>
3371
3227
 
3372
3228
  <code class="ruby"> raise &quot;Killed by SIG#{@result[:exit_signal]}&quot;</code>
3373
3229
  </li>
3374
3230
 
3375
- <li class="never" data-hits="" data-linenumber="548">
3231
+ <li class="never" data-hits="" data-linenumber="524">
3376
3232
 
3377
3233
 
3378
3234
  <code class="ruby"> end</code>
3379
3235
  </li>
3380
3236
 
3381
- <li class="never" data-hits="" data-linenumber="549">
3237
+ <li class="never" data-hits="" data-linenumber="525">
3382
3238
 
3383
3239
 
3384
3240
  <code class="ruby"> end</code>
3385
3241
  </li>
3386
3242
 
3387
- <li class="covered" data-hits="67" data-linenumber="550">
3243
+ <li class="covered" data-hits="67" data-linenumber="526">
3388
3244
  <span class="hits">67</span>
3389
3245
 
3390
3246
  <code class="ruby"> block.call(:start, ch, nil) if block</code>
3391
3247
  </li>
3392
3248
 
3393
- <li class="never" data-hits="" data-linenumber="551">
3249
+ <li class="never" data-hits="" data-linenumber="527">
3394
3250
 
3395
3251
 
3396
3252
  <code class="ruby"> end</code>
3397
3253
  </li>
3398
3254
 
3399
- <li class="never" data-hits="" data-linenumber="552">
3255
+ <li class="never" data-hits="" data-linenumber="528">
3400
3256
 
3401
3257
 
3402
3258
  <code class="ruby"> end</code>
3403
3259
  </li>
3404
3260
 
3405
- <li class="covered" data-hits="67" data-linenumber="553">
3261
+ <li class="covered" data-hits="67" data-linenumber="529">
3406
3262
  <span class="hits">67</span>
3407
3263
 
3408
3264
  <code class="ruby"> wait_for_channel session, channel, @result, opts</code>
3409
3265
  </li>
3410
3266
 
3411
- <li class="covered" data-hits="63" data-linenumber="554">
3267
+ <li class="covered" data-hits="63" data-linenumber="530">
3412
3268
  <span class="hits">63</span>
3413
3269
 
3414
3270
  <code class="ruby"> @result[:finish_at] = Time.new</code>
3415
3271
  </li>
3416
3272
 
3417
- <li class="covered" data-hits="63" data-linenumber="555">
3273
+ <li class="covered" data-hits="63" data-linenumber="531">
3418
3274
  <span class="hits">63</span>
3419
3275
 
3420
3276
  <code class="ruby"> block.call(:finish, channel, nil) if block</code>
3421
3277
  </li>
3422
3278
 
3423
- <li class="covered" data-hits="63" data-linenumber="556">
3279
+ <li class="covered" data-hits="63" data-linenumber="532">
3424
3280
  <span class="hits">63</span>
3425
3281
 
3426
3282
  <code class="ruby"> @result</code>
3427
3283
  </li>
3428
3284
 
3429
- <li class="never" data-hits="" data-linenumber="557">
3285
+ <li class="never" data-hits="" data-linenumber="533">
3430
3286
 
3431
3287
 
3432
3288
  <code class="ruby"> end</code>
3433
3289
  </li>
3434
3290
 
3435
- <li class="never" data-hits="" data-linenumber="558">
3291
+ <li class="never" data-hits="" data-linenumber="534">
3436
3292
 
3437
3293
 
3438
3294
  <code class="ruby"> end</code>
3439
3295
  </li>
3440
3296
 
3441
- <li class="never" data-hits="" data-linenumber="559">
3297
+ <li class="never" data-hits="" data-linenumber="535">
3442
3298
 
3443
3299
 
3444
3300
  <code class="ruby"></code>
3445
3301
  </li>
3446
3302
 
3447
- <li class="covered" data-hits="1" data-linenumber="560">
3303
+ <li class="covered" data-hits="1" data-linenumber="536">
3448
3304
  <span class="hits">1</span>
3449
3305
 
3450
3306
  <code class="ruby"> dsl_methods false</code>
3451
3307
  </li>
3452
3308
 
3453
- <li class="never" data-hits="" data-linenumber="561">
3309
+ <li class="never" data-hits="" data-linenumber="537">
3454
3310
 
3455
3311
 
3456
3312
  <code class="ruby"></code>
3457
3313
  </li>
3458
3314
 
3459
- <li class="covered" data-hits="1" data-linenumber="562">
3315
+ <li class="covered" data-hits="1" data-linenumber="538">
3460
3316
  <span class="hits">1</span>
3461
3317
 
3462
3318
  <code class="ruby"> def initialize(opts={})</code>
3463
3319
  </li>
3464
3320
 
3465
- <li class="covered" data-hits="77" data-linenumber="563">
3466
- <span class="hits">77</span>
3321
+ <li class="covered" data-hits="69" data-linenumber="539">
3322
+ <span class="hits">69</span>
3467
3323
 
3468
3324
  <code class="ruby"> @opts = opts</code>
3469
3325
  </li>
3470
3326
 
3471
- <li class="covered" data-hits="77" data-linenumber="564">
3472
- <span class="hits">77</span>
3327
+ <li class="covered" data-hits="69" data-linenumber="540">
3328
+ <span class="hits">69</span>
3473
3329
 
3474
3330
  <code class="ruby"> Thread.current[:ssh_simple_sessions] = {}</code>
3475
3331
  </li>
3476
3332
 
3477
- <li class="covered" data-hits="77" data-linenumber="565">
3478
- <span class="hits">77</span>
3333
+ <li class="covered" data-hits="69" data-linenumber="541">
3334
+ <span class="hits">69</span>
3479
3335
 
3480
3336
  <code class="ruby"> @result = Result.new</code>
3481
3337
  </li>
3482
3338
 
3483
- <li class="never" data-hits="" data-linenumber="566">
3339
+ <li class="never" data-hits="" data-linenumber="542">
3484
3340
 
3485
3341
 
3486
3342
  <code class="ruby"> end</code>
3487
3343
  </li>
3488
3344
 
3489
- <li class="never" data-hits="" data-linenumber="567">
3345
+ <li class="never" data-hits="" data-linenumber="543">
3490
3346
 
3491
3347
 
3492
3348
  <code class="ruby"></code>
3493
3349
  </li>
3494
3350
 
3495
- <li class="never" data-hits="" data-linenumber="568">
3351
+ <li class="never" data-hits="" data-linenumber="544">
3496
3352
 
3497
3353
 
3498
3354
  <code class="ruby"> #</code>
3499
3355
  </li>
3500
3356
 
3501
- <li class="never" data-hits="" data-linenumber="569">
3357
+ <li class="never" data-hits="" data-linenumber="545">
3502
3358
 
3503
3359
 
3504
3360
  <code class="ruby"> # Spawn a Thread to perform a sequence of ssh/scp operations.</code>
3505
3361
  </li>
3506
3362
 
3507
- <li class="never" data-hits="" data-linenumber="570">
3363
+ <li class="never" data-hits="" data-linenumber="546">
3508
3364
 
3509
3365
 
3510
3366
  <code class="ruby"> # </code>
3511
3367
  </li>
3512
3368
 
3513
- <li class="never" data-hits="" data-linenumber="571">
3369
+ <li class="never" data-hits="" data-linenumber="547">
3514
3370
 
3515
3371
 
3516
3372
  <code class="ruby"> # @param [Block] block </code>
3517
3373
  </li>
3518
3374
 
3519
- <li class="never" data-hits="" data-linenumber="572">
3375
+ <li class="never" data-hits="" data-linenumber="548">
3520
3376
 
3521
3377
 
3522
3378
  <code class="ruby"> # @param opts (see Net::SSH::Simple#ssh)</code>
3523
3379
  </li>
3524
3380
 
3525
- <li class="never" data-hits="" data-linenumber="573">
3381
+ <li class="never" data-hits="" data-linenumber="549">
3526
3382
 
3527
3383
 
3528
3384
  <code class="ruby"> # @return [Thread] Thread executing the SSH-Block.</code>
3529
3385
  </li>
3530
3386
 
3531
- <li class="never" data-hits="" data-linenumber="574">
3387
+ <li class="never" data-hits="" data-linenumber="550">
3532
3388
 
3533
3389
 
3534
3390
  <code class="ruby"> #</code>
3535
3391
  </li>
3536
3392
 
3537
- <li class="covered" data-hits="1" data-linenumber="575">
3393
+ <li class="covered" data-hits="1" data-linenumber="551">
3538
3394
  <span class="hits">1</span>
3539
3395
 
3540
3396
  <code class="ruby"> def self.async(opts={}, &amp;block)</code>
3541
3397
  </li>
3542
3398
 
3543
- <li class="covered" data-hits="28" data-linenumber="576">
3399
+ <li class="covered" data-hits="28" data-linenumber="552">
3544
3400
  <span class="hits">28</span>
3545
3401
 
3546
3402
  <code class="ruby"> Thread.new do</code>
3547
3403
  </li>
3548
3404
 
3549
- <li class="covered" data-hits="28" data-linenumber="577">
3405
+ <li class="covered" data-hits="28" data-linenumber="553">
3550
3406
  <span class="hits">28</span>
3551
3407
 
3552
3408
  <code class="ruby"> self.sync(opts, &amp;block)</code>
3553
3409
  </li>
3554
3410
 
3555
- <li class="never" data-hits="" data-linenumber="578">
3411
+ <li class="never" data-hits="" data-linenumber="554">
3556
3412
 
3557
3413
 
3558
3414
  <code class="ruby"> end</code>
3559
3415
  </li>
3560
3416
 
3561
- <li class="never" data-hits="" data-linenumber="579">
3417
+ <li class="never" data-hits="" data-linenumber="555">
3562
3418
 
3563
3419
 
3564
3420
  <code class="ruby"> end</code>
3565
3421
  </li>
3566
3422
 
3567
- <li class="never" data-hits="" data-linenumber="580">
3423
+ <li class="never" data-hits="" data-linenumber="556">
3568
3424
 
3569
3425
 
3570
3426
  <code class="ruby"></code>
3571
3427
  </li>
3572
3428
 
3573
- <li class="never" data-hits="" data-linenumber="581">
3429
+ <li class="never" data-hits="" data-linenumber="557">
3574
3430
 
3575
3431
 
3576
3432
  <code class="ruby"> #</code>
3577
3433
  </li>
3578
3434
 
3579
- <li class="never" data-hits="" data-linenumber="582">
3435
+ <li class="never" data-hits="" data-linenumber="558">
3580
3436
 
3581
3437
 
3582
3438
  <code class="ruby"> # Spawn a Thread to perform a sequence of ssh/scp operations.</code>
3583
3439
  </li>
3584
3440
 
3585
- <li class="never" data-hits="" data-linenumber="583">
3441
+ <li class="never" data-hits="" data-linenumber="559">
3586
3442
 
3587
3443
 
3588
3444
  <code class="ruby"> #</code>
3589
3445
  </li>
3590
3446
 
3591
- <li class="never" data-hits="" data-linenumber="584">
3447
+ <li class="never" data-hits="" data-linenumber="560">
3592
3448
 
3593
3449
 
3594
3450
  <code class="ruby"> # @param [Block] block</code>
3595
3451
  </li>
3596
3452
 
3597
- <li class="never" data-hits="" data-linenumber="585">
3453
+ <li class="never" data-hits="" data-linenumber="561">
3598
3454
 
3599
3455
 
3600
3456
  <code class="ruby"> # @param opts (see Net::SSH::Simple#ssh)</code>
3601
3457
  </li>
3602
3458
 
3603
- <li class="never" data-hits="" data-linenumber="586">
3459
+ <li class="never" data-hits="" data-linenumber="562">
3604
3460
 
3605
3461
 
3606
3462
  <code class="ruby"> # @return [Thread] Thread executing the SSH-Block.</code>
3607
3463
  </li>
3608
3464
 
3609
- <li class="never" data-hits="" data-linenumber="587">
3465
+ <li class="never" data-hits="" data-linenumber="563">
3610
3466
 
3611
3467
 
3612
3468
  <code class="ruby"> #</code>
3613
3469
  </li>
3614
3470
 
3615
- <li class="covered" data-hits="1" data-linenumber="588">
3471
+ <li class="covered" data-hits="1" data-linenumber="564">
3616
3472
  <span class="hits">1</span>
3617
3473
 
3618
3474
  <code class="ruby"> def async(opts={}, &amp;block)</code>
3619
3475
  </li>
3620
3476
 
3621
- <li class="covered" data-hits="3" data-linenumber="589">
3477
+ <li class="covered" data-hits="3" data-linenumber="565">
3622
3478
  <span class="hits">3</span>
3623
3479
 
3624
3480
  <code class="ruby"> opts = @opts.merge(opts)</code>
3625
3481
  </li>
3626
3482
 
3627
- <li class="covered" data-hits="3" data-linenumber="590">
3483
+ <li class="covered" data-hits="3" data-linenumber="566">
3628
3484
  <span class="hits">3</span>
3629
3485
 
3630
3486
  <code class="ruby"> self.class.async(opts, &amp;block)</code>
3631
3487
  </li>
3632
3488
 
3633
- <li class="never" data-hits="" data-linenumber="591">
3489
+ <li class="never" data-hits="" data-linenumber="567">
3634
3490
 
3635
3491
 
3636
3492
  <code class="ruby"> end</code>
3637
3493
  </li>
3638
3494
 
3639
- <li class="never" data-hits="" data-linenumber="592">
3495
+ <li class="never" data-hits="" data-linenumber="568">
3640
3496
 
3641
3497
 
3642
3498
  <code class="ruby"></code>
3643
3499
  </li>
3644
3500
 
3645
- <li class="never" data-hits="" data-linenumber="593">
3501
+ <li class="never" data-hits="" data-linenumber="569">
3646
3502
 
3647
3503
 
3648
3504
  <code class="ruby"> #</code>
3649
3505
  </li>
3650
3506
 
3651
- <li class="never" data-hits="" data-linenumber="594">
3507
+ <li class="never" data-hits="" data-linenumber="570">
3652
3508
 
3653
3509
 
3654
3510
  <code class="ruby"> # Perform a sequence of ssh/scp operations.</code>
3655
3511
  </li>
3656
3512
 
3657
- <li class="never" data-hits="" data-linenumber="595">
3513
+ <li class="never" data-hits="" data-linenumber="571">
3658
3514
 
3659
3515
 
3660
3516
  <code class="ruby"> #</code>
3661
3517
  </li>
3662
3518
 
3663
- <li class="never" data-hits="" data-linenumber="596">
3519
+ <li class="never" data-hits="" data-linenumber="572">
3664
3520
 
3665
3521
 
3666
3522
  <code class="ruby"> # @param opts (see Net::SSH::Simple#ssh)</code>
3667
3523
  </li>
3668
3524
 
3669
- <li class="never" data-hits="" data-linenumber="597">
3525
+ <li class="never" data-hits="" data-linenumber="573">
3670
3526
 
3671
3527
 
3672
3528
  <code class="ruby"> # @return [Net::SSH::Simple::Result] Result</code>
3673
3529
  </li>
3674
3530
 
3675
- <li class="never" data-hits="" data-linenumber="598">
3531
+ <li class="never" data-hits="" data-linenumber="574">
3676
3532
 
3677
3533
 
3678
3534
  <code class="ruby"> #</code>
3679
3535
  </li>
3680
3536
 
3681
- <li class="covered" data-hits="1" data-linenumber="599">
3537
+ <li class="covered" data-hits="1" data-linenumber="575">
3682
3538
  <span class="hits">1</span>
3683
3539
 
3684
3540
  <code class="ruby"> def self.sync(opts={}, &amp;block)</code>
3685
3541
  </li>
3686
3542
 
3687
- <li class="covered" data-hits="42" data-linenumber="600">
3688
- <span class="hits">42</span>
3543
+ <li class="covered" data-hits="40" data-linenumber="576">
3544
+ <span class="hits">40</span>
3689
3545
 
3690
3546
  <code class="ruby"> s = self.new(opts)</code>
3691
3547
  </li>
3692
3548
 
3693
- <li class="covered" data-hits="42" data-linenumber="601">
3694
- <span class="hits">42</span>
3549
+ <li class="covered" data-hits="40" data-linenumber="577">
3550
+ <span class="hits">40</span>
3695
3551
 
3696
3552
  <code class="ruby"> r = Blockenspiel.invoke(block, s)</code>
3697
3553
  </li>
3698
3554
 
3699
- <li class="covered" data-hits="42" data-linenumber="602">
3700
- <span class="hits">42</span>
3555
+ <li class="covered" data-hits="40" data-linenumber="578">
3556
+ <span class="hits">40</span>
3701
3557
 
3702
3558
  <code class="ruby"> s.close</code>
3703
3559
  </li>
3704
3560
 
3705
- <li class="covered" data-hits="42" data-linenumber="603">
3706
- <span class="hits">42</span>
3561
+ <li class="covered" data-hits="40" data-linenumber="579">
3562
+ <span class="hits">40</span>
3707
3563
 
3708
3564
  <code class="ruby"> r</code>
3709
3565
  </li>
3710
3566
 
3711
- <li class="never" data-hits="" data-linenumber="604">
3567
+ <li class="never" data-hits="" data-linenumber="580">
3712
3568
 
3713
3569
 
3714
3570
  <code class="ruby"> end</code>
3715
3571
  </li>
3716
3572
 
3717
- <li class="never" data-hits="" data-linenumber="605">
3573
+ <li class="never" data-hits="" data-linenumber="581">
3718
3574
 
3719
3575
 
3720
3576
  <code class="ruby"></code>
3721
3577
  </li>
3722
3578
 
3723
- <li class="never" data-hits="" data-linenumber="606">
3579
+ <li class="never" data-hits="" data-linenumber="582">
3724
3580
 
3725
3581
 
3726
3582
  <code class="ruby"> #</code>
3727
3583
  </li>
3728
3584
 
3729
- <li class="never" data-hits="" data-linenumber="607">
3585
+ <li class="never" data-hits="" data-linenumber="583">
3730
3586
 
3731
3587
 
3732
3588
  <code class="ruby"> # Close and cleanup.</code>
3733
3589
  </li>
3734
3590
 
3735
- <li class="never" data-hits="" data-linenumber="608">
3591
+ <li class="never" data-hits="" data-linenumber="584">
3736
3592
 
3737
3593
 
3738
3594
  <code class="ruby"> #</code>
3739
3595
  </li>
3740
3596
 
3741
- <li class="never" data-hits="" data-linenumber="609">
3597
+ <li class="never" data-hits="" data-linenumber="585">
3742
3598
 
3743
3599
 
3744
3600
  <code class="ruby"> # @return [Net::SSH::Simple::Result] Result</code>
3745
3601
  </li>
3746
3602
 
3747
- <li class="never" data-hits="" data-linenumber="610">
3603
+ <li class="never" data-hits="" data-linenumber="586">
3748
3604
 
3749
3605
 
3750
3606
  <code class="ruby"> # </code>
3751
3607
  </li>
3752
3608
 
3753
- <li class="covered" data-hits="1" data-linenumber="611">
3609
+ <li class="covered" data-hits="1" data-linenumber="587">
3754
3610
  <span class="hits">1</span>
3755
3611
 
3756
3612
  <code class="ruby"> def close</code>
3757
3613
  </li>
3758
3614
 
3759
- <li class="covered" data-hits="68" data-linenumber="612">
3760
- <span class="hits">68</span>
3615
+ <li class="covered" data-hits="62" data-linenumber="588">
3616
+ <span class="hits">62</span>
3761
3617
 
3762
3618
  <code class="ruby"> Thread.current[:ssh_simple_sessions].values.each do |session|</code>
3763
3619
  </li>
3764
3620
 
3765
- <li class="covered" data-hits="67" data-linenumber="613">
3766
- <span class="hits">67</span>
3621
+ <li class="covered" data-hits="61" data-linenumber="589">
3622
+ <span class="hits">61</span>
3767
3623
 
3768
3624
  <code class="ruby"> begin</code>
3769
3625
  </li>
3770
3626
 
3771
- <li class="covered" data-hits="133" data-linenumber="614">
3772
- <span class="hits">133</span>
3627
+ <li class="covered" data-hits="121" data-linenumber="590">
3628
+ <span class="hits">121</span>
3773
3629
 
3774
3630
  <code class="ruby"> Timeout.timeout(@opts[:close_timeout] || 5) { session.close }</code>
3775
3631
  </li>
3776
3632
 
3777
- <li class="never" data-hits="" data-linenumber="615">
3633
+ <li class="never" data-hits="" data-linenumber="591">
3778
3634
 
3779
3635
 
3780
3636
  <code class="ruby"> rescue =&gt; e</code>
3781
3637
  </li>
3782
3638
 
3783
- <li class="covered" data-hits="1" data-linenumber="616">
3639
+ <li class="covered" data-hits="1" data-linenumber="592">
3784
3640
  <span class="hits">1</span>
3785
3641
 
3786
3642
  <code class="ruby"> begin</code>
3787
3643
  </li>
3788
3644
 
3789
- <li class="covered" data-hits="1" data-linenumber="617">
3645
+ <li class="covered" data-hits="1" data-linenumber="593">
3790
3646
  <span class="hits">1</span>
3791
3647
 
3792
3648
  <code class="ruby"> session.shutdown!</code>
3793
3649
  </li>
3794
3650
 
3795
- <li class="never" data-hits="" data-linenumber="618">
3651
+ <li class="never" data-hits="" data-linenumber="594">
3796
3652
 
3797
3653
 
3798
3654
  <code class="ruby"> rescue</code>
3799
3655
  </li>
3800
3656
 
3801
- <li class="never" data-hits="" data-linenumber="619">
3657
+ <li class="never" data-hits="" data-linenumber="595">
3802
3658
 
3803
3659
 
3804
3660
  <code class="ruby"> end</code>
3805
3661
  </li>
3806
3662
 
3807
- <li class="never" data-hits="" data-linenumber="620">
3663
+ <li class="never" data-hits="" data-linenumber="596">
3808
3664
 
3809
3665
 
3810
3666
  <code class="ruby"> end</code>
3811
3667
  </li>
3812
3668
 
3813
- <li class="never" data-hits="" data-linenumber="621">
3669
+ <li class="never" data-hits="" data-linenumber="597">
3814
3670
 
3815
3671
 
3816
3672
  <code class="ruby"> end</code>
3817
3673
  </li>
3818
3674
 
3819
- <li class="covered" data-hits="68" data-linenumber="622">
3820
- <span class="hits">68</span>
3675
+ <li class="covered" data-hits="62" data-linenumber="598">
3676
+ <span class="hits">62</span>
3821
3677
 
3822
3678
  <code class="ruby"> @result</code>
3823
3679
  </li>
3824
3680
 
3825
- <li class="never" data-hits="" data-linenumber="623">
3681
+ <li class="never" data-hits="" data-linenumber="599">
3826
3682
 
3827
3683
 
3828
3684
  <code class="ruby"> end</code>
3829
3685
  </li>
3830
3686
 
3831
- <li class="never" data-hits="" data-linenumber="624">
3687
+ <li class="never" data-hits="" data-linenumber="600">
3832
3688
 
3833
3689
 
3834
3690
  <code class="ruby"></code>
3835
3691
  </li>
3836
3692
 
3837
- <li class="never" data-hits="" data-linenumber="625">
3693
+ <li class="never" data-hits="" data-linenumber="601">
3838
3694
 
3839
3695
 
3840
3696
  <code class="ruby"></code>
3841
3697
  </li>
3842
3698
 
3843
- <li class="covered" data-hits="1" data-linenumber="626">
3699
+ <li class="covered" data-hits="1" data-linenumber="602">
3844
3700
  <span class="hits">1</span>
3845
3701
 
3846
3702
  <code class="ruby"> private</code>
3847
3703
  </li>
3848
3704
 
3849
- <li class="covered" data-hits="1" data-linenumber="627">
3705
+ <li class="covered" data-hits="1" data-linenumber="603">
3850
3706
  <span class="hits">1</span>
3851
3707
 
3852
3708
  <code class="ruby"> EXTRA_OPTS = [:operation_timeout, :close_timeout, :keepalive_interval, :scp_src, :scp_dst]</code>
3853
3709
  </li>
3854
3710
 
3855
- <li class="never" data-hits="" data-linenumber="628">
3711
+ <li class="never" data-hits="" data-linenumber="604">
3856
3712
 
3857
3713
 
3858
3714
  <code class="ruby"></code>
3859
3715
  </li>
3860
3716
 
3861
- <li class="covered" data-hits="1" data-linenumber="629">
3717
+ <li class="covered" data-hits="1" data-linenumber="605">
3862
3718
  <span class="hits">1</span>
3863
3719
 
3864
3720
  <code class="ruby"> def with_session(host, opts={}, &amp;block)</code>
3865
3721
  </li>
3866
3722
 
3867
- <li class="covered" data-hits="117" data-linenumber="630">
3868
- <span class="hits">117</span>
3723
+ <li class="covered" data-hits="101" data-linenumber="606">
3724
+ <span class="hits">101</span>
3869
3725
 
3870
3726
  <code class="ruby"> opts[:timeout] ||= 60</code>
3871
3727
  </li>
3872
3728
 
3873
- <li class="covered" data-hits="117" data-linenumber="631">
3874
- <span class="hits">117</span>
3729
+ <li class="covered" data-hits="101" data-linenumber="607">
3730
+ <span class="hits">101</span>
3875
3731
 
3876
3732
  <code class="ruby"> opts[:timeout] = 2**32 if opts[:timeout] == 0</code>
3877
3733
  </li>
3878
3734
 
3879
- <li class="covered" data-hits="117" data-linenumber="632">
3880
- <span class="hits">117</span>
3735
+ <li class="covered" data-hits="101" data-linenumber="608">
3736
+ <span class="hits">101</span>
3881
3737
 
3882
3738
  <code class="ruby"> opts[:operation_timeout] ||= 3600</code>
3883
3739
  </li>
3884
3740
 
3885
- <li class="covered" data-hits="117" data-linenumber="633">
3886
- <span class="hits">117</span>
3741
+ <li class="covered" data-hits="101" data-linenumber="609">
3742
+ <span class="hits">101</span>
3887
3743
 
3888
3744
  <code class="ruby"> opts[:operation_timeout] = 2**32 if opts[:operation_timeout] == 0</code>
3889
3745
  </li>
3890
3746
 
3891
- <li class="covered" data-hits="117" data-linenumber="634">
3892
- <span class="hits">117</span>
3747
+ <li class="covered" data-hits="101" data-linenumber="610">
3748
+ <span class="hits">101</span>
3893
3749
 
3894
3750
  <code class="ruby"> opts[:close_timeout] ||= 5</code>
3895
3751
  </li>
3896
3752
 
3897
- <li class="covered" data-hits="117" data-linenumber="635">
3898
- <span class="hits">117</span>
3753
+ <li class="covered" data-hits="101" data-linenumber="611">
3754
+ <span class="hits">101</span>
3899
3755
 
3900
3756
  <code class="ruby"> opts[:keepalive_interval] ||= 60</code>
3901
3757
  </li>
3902
3758
 
3903
- <li class="covered" data-hits="117" data-linenumber="636">
3904
- <span class="hits">117</span>
3759
+ <li class="covered" data-hits="101" data-linenumber="612">
3760
+ <span class="hits">101</span>
3905
3761
 
3906
3762
  <code class="ruby"> begin</code>
3907
3763
  </li>
3908
3764
 
3909
- <li class="covered" data-hits="704" data-linenumber="637">
3910
- <span class="hits">704</span>
3765
+ <li class="covered" data-hits="584" data-linenumber="613">
3766
+ <span class="hits">584</span>
3911
3767
 
3912
3768
  <code class="ruby"> net_ssh_opts = opts.reject{|k,v| EXTRA_OPTS.include? k }</code>
3913
3769
  </li>
3914
3770
 
3915
- <li class="covered" data-hits="117" data-linenumber="638">
3916
- <span class="hits">117</span>
3771
+ <li class="covered" data-hits="101" data-linenumber="614">
3772
+ <span class="hits">101</span>
3917
3773
 
3918
3774
  <code class="ruby"> Timeout.timeout(opts[:operation_timeout]) do</code>
3919
3775
  </li>
3920
3776
 
3921
- <li class="covered" data-hits="117" data-linenumber="639">
3922
- <span class="hits">117</span>
3777
+ <li class="covered" data-hits="101" data-linenumber="615">
3778
+ <span class="hits">101</span>
3923
3779
 
3924
3780
  <code class="ruby"> session = Thread.current[:ssh_simple_sessions][host.hash] \</code>
3925
3781
  </li>
3926
3782
 
3927
- <li class="never" data-hits="" data-linenumber="640">
3783
+ <li class="never" data-hits="" data-linenumber="616">
3928
3784
 
3929
3785
 
3930
3786
  <code class="ruby"> = Thread.current[:ssh_simple_sessions][host.hash] \</code>
3931
3787
  </li>
3932
3788
 
3933
- <li class="never" data-hits="" data-linenumber="641">
3789
+ <li class="never" data-hits="" data-linenumber="617">
3934
3790
 
3935
3791
 
3936
3792
  <code class="ruby"> || Net::SSH.start(*[host, opts[:user], net_ssh_opts])</code>
3937
3793
  </li>
3938
3794
 
3939
- <li class="covered" data-hits="116" data-linenumber="642">
3940
- <span class="hits">116</span>
3795
+ <li class="covered" data-hits="100" data-linenumber="618">
3796
+ <span class="hits">100</span>
3941
3797
 
3942
3798
  <code class="ruby"> block.call(session)</code>
3943
3799
  </li>
3944
3800
 
3945
- <li class="never" data-hits="" data-linenumber="643">
3801
+ <li class="never" data-hits="" data-linenumber="619">
3946
3802
 
3947
3803
 
3948
3804
  <code class="ruby"> end</code>
3949
3805
  </li>
3950
3806
 
3951
- <li class="covered" data-hits="9" data-linenumber="644">
3952
- <span class="hits">9</span>
3807
+ <li class="covered" data-hits="7" data-linenumber="620">
3808
+ <span class="hits">7</span>
3953
3809
 
3954
3810
  <code class="ruby"> rescue =&gt; e</code>
3955
3811
  </li>
3956
3812
 
3957
- <li class="covered" data-hits="9" data-linenumber="645">
3958
- <span class="hits">9</span>
3813
+ <li class="covered" data-hits="7" data-linenumber="621">
3814
+ <span class="hits">7</span>
3959
3815
 
3960
3816
  <code class="ruby"> opts[:password].gsub!(/./,'*') if opts.include? :password</code>
3961
3817
  </li>
3962
3818
 
3963
- <li class="covered" data-hits="9" data-linenumber="646">
3964
- <span class="hits">9</span>
3819
+ <li class="covered" data-hits="7" data-linenumber="622">
3820
+ <span class="hits">7</span>
3965
3821
 
3966
3822
  <code class="ruby"> @result[:exception] = e</code>
3967
3823
  </li>
3968
3824
 
3969
- <li class="covered" data-hits="9" data-linenumber="647">
3970
- <span class="hits">9</span>
3825
+ <li class="covered" data-hits="7" data-linenumber="623">
3826
+ <span class="hits">7</span>
3971
3827
 
3972
3828
  <code class="ruby"> @result[:success] = false</code>
3973
3829
  </li>
3974
3830
 
3975
- <li class="covered" data-hits="9" data-linenumber="648">
3976
- <span class="hits">9</span>
3831
+ <li class="covered" data-hits="7" data-linenumber="624">
3832
+ <span class="hits">7</span>
3977
3833
 
3978
3834
  <code class="ruby"> @result[:timed_out] = true if e.is_a? Timeout::Error</code>
3979
3835
  </li>
3980
3836
 
3981
- <li class="covered" data-hits="9" data-linenumber="649">
3982
- <span class="hits">9</span>
3837
+ <li class="covered" data-hits="7" data-linenumber="625">
3838
+ <span class="hits">7</span>
3983
3839
 
3984
3840
  <code class="ruby"> @result[:finish_at] = Time.new</code>
3985
3841
  </li>
3986
3842
 
3987
- <li class="covered" data-hits="9" data-linenumber="650">
3988
- <span class="hits">9</span>
3843
+ <li class="covered" data-hits="7" data-linenumber="626">
3844
+ <span class="hits">7</span>
3989
3845
 
3990
3846
  <code class="ruby"> raise Net::SSH::Simple::Error, [e, @result]</code>
3991
3847
  </li>
3992
3848
 
3993
- <li class="never" data-hits="" data-linenumber="651">
3849
+ <li class="never" data-hits="" data-linenumber="627">
3994
3850
 
3995
3851
 
3996
3852
  <code class="ruby"> end</code>
3997
3853
  </li>
3998
3854
 
3999
- <li class="never" data-hits="" data-linenumber="652">
3855
+ <li class="never" data-hits="" data-linenumber="628">
4000
3856
 
4001
3857
 
4002
3858
  <code class="ruby"> end</code>
4003
3859
  </li>
4004
3860
 
4005
- <li class="never" data-hits="" data-linenumber="653">
3861
+ <li class="never" data-hits="" data-linenumber="629">
4006
3862
 
4007
3863
 
4008
3864
  <code class="ruby"></code>
4009
3865
  </li>
4010
3866
 
4011
- <li class="covered" data-hits="1" data-linenumber="654">
3867
+ <li class="covered" data-hits="1" data-linenumber="630">
4012
3868
  <span class="hits">1</span>
4013
3869
 
4014
3870
  <code class="ruby"> def wait_for_channel(session, channel, result, opts)</code>
4015
3871
  </li>
4016
3872
 
4017
- <li class="covered" data-hits="116" data-linenumber="655">
4018
- <span class="hits">116</span>
3873
+ <li class="covered" data-hits="100" data-linenumber="631">
3874
+ <span class="hits">100</span>
4019
3875
 
4020
3876
  <code class="ruby"> session.loop(1) do</code>
4021
3877
  </li>
4022
3878
 
4023
- <li class="covered" data-hits="2383" data-linenumber="656">
4024
- <span class="hits">2383</span>
3879
+ <li class="covered" data-hits="1897" data-linenumber="632">
3880
+ <span class="hits">1897</span>
4025
3881
 
4026
3882
  <code class="ruby"> if opts[:timeout] &lt; Time.now - result[:last_event_at]</code>
4027
3883
  </li>
4028
3884
 
4029
- <li class="covered" data-hits="1" data-linenumber="657">
3885
+ <li class="covered" data-hits="1" data-linenumber="633">
4030
3886
  <span class="hits">1</span>
4031
3887
 
4032
3888
  <code class="ruby"> raise Timeout::Error, 'idle timeout'</code>
4033
3889
  </li>
4034
3890
 
4035
- <li class="never" data-hits="" data-linenumber="658">
3891
+ <li class="never" data-hits="" data-linenumber="634">
4036
3892
 
4037
3893
 
4038
3894
  <code class="ruby"> end</code>
4039
3895
  </li>
4040
3896
 
4041
- <li class="never" data-hits="" data-linenumber="659">
3897
+ <li class="never" data-hits="" data-linenumber="635">
4042
3898
 
4043
3899
 
4044
3900
  <code class="ruby"></code>
4045
3901
  </li>
4046
3902
 
4047
- <li class="never" data-hits="" data-linenumber="660">
3903
+ <li class="never" data-hits="" data-linenumber="636">
4048
3904
 
4049
3905
 
4050
3906
  <code class="ruby"> # Send keep-alive probes at the configured interval.</code>
4051
3907
  </li>
4052
3908
 
4053
- <li class="covered" data-hits="2382" data-linenumber="661">
4054
- <span class="hits">2382</span>
3909
+ <li class="covered" data-hits="1896" data-linenumber="637">
3910
+ <span class="hits">1896</span>
4055
3911
 
4056
3912
  <code class="ruby"> if opts[:keepalive_interval] &lt; Time.now.to_i - (@result[:last_keepalive_at]||0).to_i</code>
4057
3913
  </li>
4058
3914
 
4059
- <li class="covered" data-hits="119" data-linenumber="662">
4060
- <span class="hits">119</span>
3915
+ <li class="covered" data-hits="103" data-linenumber="638">
3916
+ <span class="hits">103</span>
4061
3917
 
4062
3918
  <code class="ruby"> session.send_global_request('keep-alive@openssh.com')</code>
4063
3919
  </li>
4064
3920
 
4065
- <li class="covered" data-hits="119" data-linenumber="663">
4066
- <span class="hits">119</span>
3921
+ <li class="covered" data-hits="103" data-linenumber="639">
3922
+ <span class="hits">103</span>
4067
3923
 
4068
3924
  <code class="ruby"> @result[:last_keepalive_at] = Time.now</code>
4069
3925
  </li>
4070
3926
 
4071
- <li class="never" data-hits="" data-linenumber="664">
3927
+ <li class="never" data-hits="" data-linenumber="640">
4072
3928
 
4073
3929
 
4074
3930
  <code class="ruby"> end</code>
4075
3931
  </li>
4076
3932
 
4077
- <li class="covered" data-hits="2382" data-linenumber="665">
4078
- <span class="hits">2382</span>
3933
+ <li class="covered" data-hits="1896" data-linenumber="641">
3934
+ <span class="hits">1896</span>
4079
3935
 
4080
3936
  <code class="ruby"> channel.active?</code>
4081
3937
  </li>
4082
3938
 
4083
- <li class="never" data-hits="" data-linenumber="666">
3939
+ <li class="never" data-hits="" data-linenumber="642">
4084
3940
 
4085
3941
 
4086
3942
  <code class="ruby"> end</code>
4087
3943
  </li>
4088
3944
 
4089
- <li class="never" data-hits="" data-linenumber="667">
3945
+ <li class="never" data-hits="" data-linenumber="643">
4090
3946
 
4091
3947
 
4092
3948
  <code class="ruby"> end</code>
4093
3949
  </li>
4094
3950
 
4095
- <li class="never" data-hits="" data-linenumber="668">
3951
+ <li class="never" data-hits="" data-linenumber="644">
4096
3952
 
4097
3953
 
4098
3954
  <code class="ruby"></code>
4099
3955
  </li>
4100
3956
 
4101
- <li class="covered" data-hits="1" data-linenumber="669">
3957
+ <li class="covered" data-hits="1" data-linenumber="645">
4102
3958
  <span class="hits">1</span>
4103
3959
 
4104
3960
  <code class="ruby"> def scp(mode, host, src, dst, opts={}, &amp;block)</code>
4105
3961
  </li>
4106
3962
 
4107
- <li class="covered" data-hits="49" data-linenumber="670">
4108
- <span class="hits">49</span>
3963
+ <li class="covered" data-hits="33" data-linenumber="646">
3964
+ <span class="hits">33</span>
4109
3965
 
4110
3966
  <code class="ruby"> opts[:scp_src] = src</code>
4111
3967
  </li>
4112
3968
 
4113
- <li class="covered" data-hits="49" data-linenumber="671">
4114
- <span class="hits">49</span>
3969
+ <li class="covered" data-hits="33" data-linenumber="647">
3970
+ <span class="hits">33</span>
4115
3971
 
4116
3972
  <code class="ruby"> opts[:scp_dst] = dst</code>
4117
3973
  </li>
4118
3974
 
4119
- <li class="covered" data-hits="49" data-linenumber="672">
4120
- <span class="hits">49</span>
3975
+ <li class="covered" data-hits="33" data-linenumber="648">
3976
+ <span class="hits">33</span>
4121
3977
 
4122
3978
  <code class="ruby"> @result = Result.new(</code>
4123
3979
  </li>
4124
3980
 
4125
- <li class="never" data-hits="" data-linenumber="673">
3981
+ <li class="never" data-hits="" data-linenumber="649">
4126
3982
 
4127
3983
 
4128
3984
  <code class="ruby"> { :op =&gt; :scp, :host =&gt; host, :opts =&gt; opts, :cmd =&gt; mode,</code>
4129
3985
  </li>
4130
3986
 
4131
- <li class="never" data-hits="" data-linenumber="674">
3987
+ <li class="never" data-hits="" data-linenumber="650">
4132
3988
 
4133
3989
 
4134
3990
  <code class="ruby"> :last_event_at =&gt; Time.new, :start_at =&gt; Time.new, :success =&gt; false</code>
4135
3991
  </li>
4136
3992
 
4137
- <li class="never" data-hits="" data-linenumber="675">
3993
+ <li class="never" data-hits="" data-linenumber="651">
4138
3994
 
4139
3995
 
4140
3996
  <code class="ruby"> } )</code>
4141
3997
  </li>
4142
3998
 
4143
- <li class="covered" data-hits="49" data-linenumber="676">
4144
- <span class="hits">49</span>
3999
+ <li class="covered" data-hits="33" data-linenumber="652">
4000
+ <span class="hits">33</span>
4145
4001
 
4146
4002
  <code class="ruby"> with_session(host, opts) do |session|</code>
4147
4003
  </li>
4148
4004
 
4149
- <li class="covered" data-hits="49" data-linenumber="677">
4150
- <span class="hits">49</span>
4005
+ <li class="covered" data-hits="33" data-linenumber="653">
4006
+ <span class="hits">33</span>
4151
4007
 
4152
4008
  <code class="ruby"> lt = 0</code>
4153
4009
  </li>
4154
4010
 
4155
- <li class="covered" data-hits="49" data-linenumber="678">
4156
- <span class="hits">49</span>
4011
+ <li class="covered" data-hits="33" data-linenumber="654">
4012
+ <span class="hits">33</span>
4157
4013
 
4158
4014
  <code class="ruby"> channel = session.scp.send(mode, src, dst) do |ch, name, sent, total|</code>
4159
4015
  </li>
4160
4016
 
4161
- <li class="covered" data-hits="94" data-linenumber="679">
4162
- <span class="hits">94</span>
4017
+ <li class="covered" data-hits="64" data-linenumber="655">
4018
+ <span class="hits">64</span>
4163
4019
 
4164
4020
  <code class="ruby"> @result[:total] ||= total</code>
4165
4021
  </li>
4166
4022
 
4167
- <li class="covered" data-hits="94" data-linenumber="680">
4168
- <span class="hits">94</span>
4023
+ <li class="covered" data-hits="64" data-linenumber="656">
4024
+ <span class="hits">64</span>
4169
4025
 
4170
4026
  <code class="ruby"> @result[:sent] = sent</code>
4171
4027
  </li>
4172
4028
 
4173
- <li class="covered" data-hits="94" data-linenumber="681">
4174
- <span class="hits">94</span>
4029
+ <li class="covered" data-hits="64" data-linenumber="657">
4030
+ <span class="hits">64</span>
4175
4031
 
4176
4032
  <code class="ruby"> @result[:last_event_at] = Time.new</code>
4177
4033
  </li>
4178
4034
 
4179
- <li class="covered" data-hits="94" data-linenumber="682">
4180
- <span class="hits">94</span>
4035
+ <li class="covered" data-hits="64" data-linenumber="658">
4036
+ <span class="hits">64</span>
4181
4037
 
4182
4038
  <code class="ruby"> block.call(sent, total) unless block.nil?</code>
4183
4039
  </li>
4184
4040
 
4185
- <li class="never" data-hits="" data-linenumber="683">
4041
+ <li class="never" data-hits="" data-linenumber="659">
4186
4042
 
4187
4043
 
4188
4044
  <code class="ruby"> end</code>
4189
4045
  </li>
4190
4046
 
4191
- <li class="covered" data-hits="49" data-linenumber="684">
4192
- <span class="hits">49</span>
4047
+ <li class="covered" data-hits="33" data-linenumber="660">
4048
+ <span class="hits">33</span>
4193
4049
 
4194
4050
  <code class="ruby"> wait_for_channel session, channel, @result, opts</code>
4195
4051
  </li>
4196
4052
 
4197
- <li class="covered" data-hits="45" data-linenumber="685">
4198
- <span class="hits">45</span>
4053
+ <li class="covered" data-hits="31" data-linenumber="661">
4054
+ <span class="hits">31</span>
4199
4055
 
4200
4056
  <code class="ruby"> @result[:finish_at] = Time.new</code>
4201
4057
  </li>
4202
4058
 
4203
- <li class="covered" data-hits="45" data-linenumber="686">
4204
- <span class="hits">45</span>
4059
+ <li class="covered" data-hits="31" data-linenumber="662">
4060
+ <span class="hits">31</span>
4205
4061
 
4206
4062
  <code class="ruby"> @result[:success] = @result[:sent] == @result[:total]</code>
4207
4063
  </li>
4208
4064
 
4209
- <li class="covered" data-hits="45" data-linenumber="687">
4210
- <span class="hits">45</span>
4065
+ <li class="covered" data-hits="31" data-linenumber="663">
4066
+ <span class="hits">31</span>
4211
4067
 
4212
4068
  <code class="ruby"> @result</code>
4213
4069
  </li>
4214
4070
 
4215
- <li class="never" data-hits="" data-linenumber="688">
4071
+ <li class="never" data-hits="" data-linenumber="664">
4216
4072
 
4217
4073
 
4218
4074
  <code class="ruby"> end</code>
4219
4075
  </li>
4220
4076
 
4221
- <li class="never" data-hits="" data-linenumber="689">
4077
+ <li class="never" data-hits="" data-linenumber="665">
4222
4078
 
4223
4079
 
4224
4080
  <code class="ruby"> end</code>
4225
4081
  </li>
4226
4082
 
4227
- <li class="never" data-hits="" data-linenumber="690">
4083
+ <li class="never" data-hits="" data-linenumber="666">
4228
4084
 
4229
4085
 
4230
4086
  <code class="ruby"> end</code>
4231
4087
  </li>
4232
4088
 
4233
- <li class="never" data-hits="" data-linenumber="691">
4089
+ <li class="never" data-hits="" data-linenumber="667">
4234
4090
 
4235
4091
 
4236
4092
  <code class="ruby"> end</code>
4237
4093
  </li>
4238
4094
 
4239
- <li class="never" data-hits="" data-linenumber="692">
4095
+ <li class="never" data-hits="" data-linenumber="668">
4240
4096
 
4241
4097
 
4242
4098
  <code class="ruby">end</code>
4243
4099
  </li>
4244
4100
 
4245
- <li class="never" data-hits="" data-linenumber="693">
4101
+ <li class="never" data-hits="" data-linenumber="669">
4246
4102
 
4247
4103
 
4248
4104
  <code class="ruby"></code>
4249
4105
  </li>
4250
4106
 
4251
- <li class="covered" data-hits="1" data-linenumber="694">
4107
+ <li class="covered" data-hits="1" data-linenumber="670">
4252
4108
  <span class="hits">1</span>
4253
4109
 
4254
4110
  <code class="ruby">module Net</code>
4255
4111
  </li>
4256
4112
 
4257
- <li class="covered" data-hits="1" data-linenumber="695">
4113
+ <li class="covered" data-hits="1" data-linenumber="671">
4258
4114
  <span class="hits">1</span>
4259
4115
 
4260
4116
  <code class="ruby"> module SSH</code>
4261
4117
  </li>
4262
4118
 
4263
- <li class="covered" data-hits="1" data-linenumber="696">
4119
+ <li class="covered" data-hits="1" data-linenumber="672">
4264
4120
  <span class="hits">1</span>
4265
4121
 
4266
4122
  <code class="ruby"> class Simple</code>
4267
4123
  </li>
4268
4124
 
4269
- <li class="never" data-hits="" data-linenumber="697">
4125
+ <li class="never" data-hits="" data-linenumber="673">
4270
4126
 
4271
4127
 
4272
4128
  <code class="ruby"> #</code>
4273
4129
  </li>
4274
4130
 
4275
- <li class="never" data-hits="" data-linenumber="698">
4131
+ <li class="never" data-hits="" data-linenumber="674">
4276
4132
 
4277
4133
 
4278
4134
  <code class="ruby"> # Error that occured during a Net::SSH::Simple operation.</code>
4279
4135
  </li>
4280
4136
 
4281
- <li class="never" data-hits="" data-linenumber="699">
4137
+ <li class="never" data-hits="" data-linenumber="675">
4282
4138
 
4283
4139
 
4284
4140
  <code class="ruby"> #</code>
4285
4141
  </li>
4286
4142
 
4287
- <li class="covered" data-hits="1" data-linenumber="700">
4143
+ <li class="covered" data-hits="1" data-linenumber="676">
4288
4144
  <span class="hits">1</span>
4289
4145
 
4290
4146
  <code class="ruby"> class Error &lt; RuntimeError</code>
4291
4147
  </li>
4292
4148
 
4293
- <li class="never" data-hits="" data-linenumber="701">
4149
+ <li class="never" data-hits="" data-linenumber="677">
4294
4150
 
4295
4151
 
4296
4152
  <code class="ruby"> # Reference to the underlying Exception</code>
4297
4153
  </li>
4298
4154
 
4299
- <li class="covered" data-hits="1" data-linenumber="702">
4155
+ <li class="covered" data-hits="1" data-linenumber="678">
4300
4156
  <span class="hits">1</span>
4301
4157
 
4302
4158
  <code class="ruby"> attr_reader :wrapped</code>
4303
4159
  </li>
4304
4160
 
4305
- <li class="never" data-hits="" data-linenumber="703">
4161
+ <li class="never" data-hits="" data-linenumber="679">
4306
4162
 
4307
4163
 
4308
4164
  <code class="ruby"></code>
4309
4165
  </li>
4310
4166
 
4311
- <li class="never" data-hits="" data-linenumber="704">
4167
+ <li class="never" data-hits="" data-linenumber="680">
4312
4168
 
4313
4169
 
4314
- <code class="ruby"> # {Net::SSH::Simple::Result} of the interrupted operation.</code>
4170
+ <code class="ruby"> # {Net::SSH::Simple::Result} of the interrupted operation (may be incomplete!).</code>
4315
4171
  </li>
4316
4172
 
4317
- <li class="covered" data-hits="1" data-linenumber="705">
4173
+ <li class="covered" data-hits="1" data-linenumber="681">
4318
4174
  <span class="hits">1</span>
4319
4175
 
4320
4176
  <code class="ruby"> attr_reader :result</code>
4321
4177
  </li>
4322
4178
 
4323
- <li class="never" data-hits="" data-linenumber="706">
4179
+ <li class="never" data-hits="" data-linenumber="682">
4324
4180
 
4325
4181
 
4326
4182
  <code class="ruby"></code>
4327
4183
  </li>
4328
4184
 
4329
- <li class="covered" data-hits="1" data-linenumber="707">
4185
+ <li class="covered" data-hits="1" data-linenumber="683">
4330
4186
  <span class="hits">1</span>
4331
4187
 
4332
4188
  <code class="ruby"> def initialize(msg, e=$!)</code>
4333
4189
  </li>
4334
4190
 
4335
- <li class="covered" data-hits="9" data-linenumber="708">
4336
- <span class="hits">9</span>
4191
+ <li class="covered" data-hits="7" data-linenumber="684">
4192
+ <span class="hits">7</span>
4337
4193
 
4338
4194
  <code class="ruby"> super(msg)</code>
4339
4195
  </li>
4340
4196
 
4341
- <li class="covered" data-hits="9" data-linenumber="709">
4342
- <span class="hits">9</span>
4197
+ <li class="covered" data-hits="7" data-linenumber="685">
4198
+ <span class="hits">7</span>
4343
4199
 
4344
4200
  <code class="ruby"> @wrapped = e</code>
4345
4201
  </li>
4346
4202
 
4347
- <li class="covered" data-hits="9" data-linenumber="710">
4348
- <span class="hits">9</span>
4203
+ <li class="covered" data-hits="7" data-linenumber="686">
4204
+ <span class="hits">7</span>
4349
4205
 
4350
4206
  <code class="ruby"> @result = msg[1]</code>
4351
4207
  </li>
4352
4208
 
4353
- <li class="never" data-hits="" data-linenumber="711">
4209
+ <li class="never" data-hits="" data-linenumber="687">
4354
4210
 
4355
4211
 
4356
4212
  <code class="ruby"> end</code>
4357
4213
  </li>
4358
4214
 
4359
- <li class="never" data-hits="" data-linenumber="712">
4215
+ <li class="never" data-hits="" data-linenumber="688">
4360
4216
 
4361
4217
 
4362
4218
  <code class="ruby"></code>
4363
4219
  </li>
4364
4220
 
4365
- <li class="covered" data-hits="1" data-linenumber="713">
4221
+ <li class="covered" data-hits="1" data-linenumber="689">
4366
4222
  <span class="hits">1</span>
4367
4223
 
4368
4224
  <code class="ruby"> def to_s</code>
4369
4225
  </li>
4370
4226
 
4371
- <li class="covered" data-hits="9" data-linenumber="714">
4372
- <span class="hits">9</span>
4227
+ <li class="covered" data-hits="7" data-linenumber="690">
4228
+ <span class="hits">7</span>
4373
4229
 
4374
4230
  <code class="ruby"> &quot;#{@wrapped} @ #{@result}&quot;</code>
4375
4231
  </li>
4376
4232
 
4377
- <li class="never" data-hits="" data-linenumber="715">
4233
+ <li class="never" data-hits="" data-linenumber="691">
4378
4234
 
4379
4235
 
4380
4236
  <code class="ruby"> end</code>
4381
4237
  </li>
4382
4238
 
4383
- <li class="never" data-hits="" data-linenumber="716">
4239
+ <li class="never" data-hits="" data-linenumber="692">
4384
4240
 
4385
4241
 
4386
4242
  <code class="ruby"> end</code>
4387
4243
  </li>
4388
4244
 
4389
- <li class="never" data-hits="" data-linenumber="717">
4245
+ <li class="never" data-hits="" data-linenumber="693">
4390
4246
 
4391
4247
 
4392
4248
  <code class="ruby"></code>
4393
4249
  </li>
4394
4250
 
4395
- <li class="never" data-hits="" data-linenumber="718">
4251
+ <li class="never" data-hits="" data-linenumber="694">
4396
4252
 
4397
4253
 
4398
4254
  <code class="ruby"> #</code>
4399
4255
  </li>
4400
4256
 
4401
- <li class="never" data-hits="" data-linenumber="719">
4257
+ <li class="never" data-hits="" data-linenumber="695">
4402
4258
 
4403
4259
 
4404
4260
  <code class="ruby"> # Result of a Net::SSH::Simple operation.</code>
4405
4261
  </li>
4406
4262
 
4407
- <li class="never" data-hits="" data-linenumber="720">
4263
+ <li class="never" data-hits="" data-linenumber="696">
4408
4264
 
4409
4265
 
4410
4266
  <code class="ruby"> #</code>
4411
4267
  </li>
4412
4268
 
4413
- <li class="never" data-hits="" data-linenumber="721">
4269
+ <li class="never" data-hits="" data-linenumber="697">
4414
4270
 
4415
4271
 
4416
4272
  <code class="ruby"> # @attr [String] host Hostname/IP address</code>
4417
4273
  </li>
4418
4274
 
4419
- <li class="never" data-hits="" data-linenumber="722">
4275
+ <li class="never" data-hits="" data-linenumber="698">
4420
4276
 
4421
4277
 
4422
4278
  <code class="ruby"> # @attr [Symbol] op :ssh or :scp</code>
4423
4279
  </li>
4424
4280
 
4425
- <li class="never" data-hits="" data-linenumber="723">
4281
+ <li class="never" data-hits="" data-linenumber="699">
4426
4282
 
4427
4283
 
4428
- <code class="ruby"> # @attr [String] cmd Shell command (SSH only)</code>
4284
+ <code class="ruby"> # @attr [String] cmd Shell command (ssh) or :upload/:download (scp)</code>
4429
4285
  </li>
4430
4286
 
4431
- <li class="never" data-hits="" data-linenumber="724">
4287
+ <li class="never" data-hits="" data-linenumber="700">
4432
4288
 
4433
4289
 
4434
4290
  <code class="ruby"> # @attr [Time] start_at Timestamp of operation start</code>
4435
4291
  </li>
4436
4292
 
4437
- <li class="never" data-hits="" data-linenumber="725">
4293
+ <li class="never" data-hits="" data-linenumber="701">
4438
4294
 
4439
4295
 
4440
4296
  <code class="ruby"> # @attr [Time] finish_at Timestamp of operation finish</code>
4441
4297
  </li>
4442
4298
 
4443
- <li class="never" data-hits="" data-linenumber="726">
4299
+ <li class="never" data-hits="" data-linenumber="702">
4444
4300
 
4445
4301
 
4446
4302
  <code class="ruby"> # @attr [Time] last_keepalive_at Timestamp of last keepalive (if any)</code>
4447
4303
  </li>
4448
4304
 
4449
- <li class="never" data-hits="" data-linenumber="727">
4305
+ <li class="never" data-hits="" data-linenumber="703">
4450
4306
 
4451
4307
 
4452
4308
  <code class="ruby"> # @attr [Time] last_event_at Timestamp of last activity</code>
4453
4309
  </li>
4454
4310
 
4455
- <li class="never" data-hits="" data-linenumber="728">
4311
+ <li class="never" data-hits="" data-linenumber="704">
4456
4312
 
4457
4313
 
4458
4314
  <code class="ruby"> # @attr [Boolean] timed_out True if the operation timed out</code>
4459
4315
  </li>
4460
4316
 
4461
- <li class="never" data-hits="" data-linenumber="729">
4317
+ <li class="never" data-hits="" data-linenumber="705">
4462
4318
 
4463
4319
 
4464
4320
  <code class="ruby"> # @attr [String] stdout Output captured on stdout (SSH only)</code>
4465
4321
  </li>
4466
4322
 
4467
- <li class="never" data-hits="" data-linenumber="730">
4323
+ <li class="never" data-hits="" data-linenumber="706">
4468
4324
 
4469
4325
 
4470
4326
  <code class="ruby"> # @attr [String] stderr Output captured on stderr (SSH only)</code>
4471
4327
  </li>
4472
4328
 
4473
- <li class="never" data-hits="" data-linenumber="731">
4329
+ <li class="never" data-hits="" data-linenumber="707">
4474
4330
 
4475
4331
 
4476
4332
  <code class="ruby"> # @attr [boolean] success Indicates whether the transport-connection was successful</code>
4477
4333
  </li>
4478
4334
 
4479
- <li class="never" data-hits="" data-linenumber="732">
4335
+ <li class="never" data-hits="" data-linenumber="708">
4480
4336
 
4481
4337
 
4482
4338
  <code class="ruby"> # @attr [String] exit_code UNIX exit code (SSH only)</code>
4483
4339
  </li>
4484
4340
 
4485
- <li class="never" data-hits="" data-linenumber="733">
4341
+ <li class="never" data-hits="" data-linenumber="709">
4486
4342
 
4487
4343
 
4488
4344
  <code class="ruby"> # @attr [Integer] total Size of requested file (in bytes, SCP only)</code>
4489
4345
  </li>
4490
4346
 
4491
- <li class="never" data-hits="" data-linenumber="734">
4347
+ <li class="never" data-hits="" data-linenumber="710">
4492
4348
 
4493
4349
 
4494
4350
  <code class="ruby"> # @attr [Integer] sent Number of bytes transferred (SCP only)</code>
4495
4351
  </li>
4496
4352
 
4497
- <li class="never" data-hits="" data-linenumber="735">
4353
+ <li class="never" data-hits="" data-linenumber="711">
4498
4354
 
4499
4355
 
4500
4356
  <code class="ruby"> # @attr [Hash] opts The options that the operation was parametrized with</code>
4501
4357
  </li>
4502
4358
 
4503
- <li class="never" data-hits="" data-linenumber="736">
4359
+ <li class="never" data-hits="" data-linenumber="712">
4504
4360
 
4505
4361
 
4506
4362
  <code class="ruby"> # @attr [Exception] exception Exception that occurred during this operation (if any)</code>
4507
4363
  </li>
4508
4364
 
4509
- <li class="never" data-hits="" data-linenumber="737">
4365
+ <li class="never" data-hits="" data-linenumber="713">
4510
4366
 
4511
4367
 
4512
4368
  <code class="ruby"> # @attr [String] exit_signal</code>
4513
4369
  </li>
4514
4370
 
4515
- <li class="never" data-hits="" data-linenumber="738">
4371
+ <li class="never" data-hits="" data-linenumber="714">
4516
4372
 
4517
4373
 
4518
4374
  <code class="ruby"> # Only present if the remote command terminated due to a signal (SSH only)</code>
4519
4375
  </li>
4520
4376
 
4521
- <li class="never" data-hits="" data-linenumber="739">
4377
+ <li class="never" data-hits="" data-linenumber="715">
4522
4378
 
4523
4379
 
4524
4380
  <code class="ruby"> #</code>
4525
4381
  </li>
4526
4382
 
4527
- <li class="covered" data-hits="1" data-linenumber="740">
4383
+ <li class="covered" data-hits="1" data-linenumber="716">
4528
4384
  <span class="hits">1</span>
4529
4385
 
4530
4386
  <code class="ruby"> class Result &lt; Hashie::Dash</code>
4531
4387
  </li>
4532
4388
 
4533
- <li class="covered" data-hits="1" data-linenumber="741">
4389
+ <li class="covered" data-hits="1" data-linenumber="717">
4534
4390
  <span class="hits">1</span>
4535
4391
 
4536
4392
  <code class="ruby"> property :host</code>
4537
4393
  </li>
4538
4394
 
4539
- <li class="covered" data-hits="1" data-linenumber="742">
4395
+ <li class="covered" data-hits="1" data-linenumber="718">
4540
4396
  <span class="hits">1</span>
4541
4397
 
4542
4398
  <code class="ruby"> property :op</code>
4543
4399
  </li>
4544
4400
 
4545
- <li class="covered" data-hits="1" data-linenumber="743">
4401
+ <li class="covered" data-hits="1" data-linenumber="719">
4546
4402
  <span class="hits">1</span>
4547
4403
 
4548
4404
  <code class="ruby"> property :cmd</code>
4549
4405
  </li>
4550
4406
 
4551
- <li class="covered" data-hits="1" data-linenumber="744">
4407
+ <li class="covered" data-hits="1" data-linenumber="720">
4552
4408
  <span class="hits">1</span>
4553
4409
 
4554
4410
  <code class="ruby"> property :start_at</code>
4555
4411
  </li>
4556
4412
 
4557
- <li class="covered" data-hits="1" data-linenumber="745">
4413
+ <li class="covered" data-hits="1" data-linenumber="721">
4558
4414
  <span class="hits">1</span>
4559
4415
 
4560
4416
  <code class="ruby"> property :finish_at</code>
4561
4417
  </li>
4562
4418
 
4563
- <li class="covered" data-hits="1" data-linenumber="746">
4419
+ <li class="covered" data-hits="1" data-linenumber="722">
4564
4420
  <span class="hits">1</span>
4565
4421
 
4566
4422
  <code class="ruby"> property :last_keepalive_at</code>
4567
4423
  </li>
4568
4424
 
4569
- <li class="covered" data-hits="1" data-linenumber="747">
4425
+ <li class="covered" data-hits="1" data-linenumber="723">
4570
4426
  <span class="hits">1</span>
4571
4427
 
4572
4428
  <code class="ruby"> property :last_event_at</code>
4573
4429
  </li>
4574
4430
 
4575
- <li class="covered" data-hits="1" data-linenumber="748">
4431
+ <li class="covered" data-hits="1" data-linenumber="724">
4576
4432
  <span class="hits">1</span>
4577
4433
 
4578
4434
  <code class="ruby"> property :timed_out</code>
4579
4435
  </li>
4580
4436
 
4581
- <li class="covered" data-hits="1" data-linenumber="749">
4437
+ <li class="covered" data-hits="1" data-linenumber="725">
4582
4438
  <span class="hits">1</span>
4583
4439
 
4584
4440
  <code class="ruby"> property :stdout, :default =&gt; ''</code>
4585
4441
  </li>
4586
4442
 
4587
- <li class="covered" data-hits="1" data-linenumber="750">
4443
+ <li class="covered" data-hits="1" data-linenumber="726">
4588
4444
  <span class="hits">1</span>
4589
4445
 
4590
4446
  <code class="ruby"> property :stderr, :default =&gt; ''</code>
4591
4447
  </li>
4592
4448
 
4593
- <li class="covered" data-hits="1" data-linenumber="751">
4449
+ <li class="covered" data-hits="1" data-linenumber="727">
4594
4450
  <span class="hits">1</span>
4595
4451
 
4596
4452
  <code class="ruby"> property :success, :default =&gt; false</code>
4597
4453
  </li>
4598
4454
 
4599
- <li class="covered" data-hits="1" data-linenumber="752">
4455
+ <li class="covered" data-hits="1" data-linenumber="728">
4600
4456
  <span class="hits">1</span>
4601
4457
 
4602
4458
  <code class="ruby"> property :exit_code</code>
4603
4459
  </li>
4604
4460
 
4605
- <li class="covered" data-hits="1" data-linenumber="753">
4461
+ <li class="covered" data-hits="1" data-linenumber="729">
4606
4462
  <span class="hits">1</span>
4607
4463
 
4608
4464
  <code class="ruby"> property :total</code>
4609
4465
  </li>
4610
4466
 
4611
- <li class="covered" data-hits="1" data-linenumber="754">
4467
+ <li class="covered" data-hits="1" data-linenumber="730">
4612
4468
  <span class="hits">1</span>
4613
4469
 
4614
4470
  <code class="ruby"> property :sent</code>
4615
4471
  </li>
4616
4472
 
4617
- <li class="covered" data-hits="1" data-linenumber="755">
4473
+ <li class="covered" data-hits="1" data-linenumber="731">
4618
4474
  <span class="hits">1</span>
4619
4475
 
4620
4476
  <code class="ruby"> property :opts</code>
4621
4477
  </li>
4622
4478
 
4623
- <li class="covered" data-hits="1" data-linenumber="756">
4479
+ <li class="covered" data-hits="1" data-linenumber="732">
4624
4480
  <span class="hits">1</span>
4625
4481
 
4626
4482
  <code class="ruby"> property :exception</code>
4627
4483
  </li>
4628
4484
 
4629
- <li class="covered" data-hits="1" data-linenumber="757">
4485
+ <li class="covered" data-hits="1" data-linenumber="733">
4630
4486
  <span class="hits">1</span>
4631
4487
 
4632
4488
  <code class="ruby"> property :exit_signal</code>
4633
4489
  </li>
4634
4490
 
4635
- <li class="never" data-hits="" data-linenumber="758">
4491
+ <li class="never" data-hits="" data-linenumber="734">
4636
4492
 
4637
4493
 
4638
4494
  <code class="ruby"> end</code>
4639
4495
  </li>
4640
4496
 
4641
- <li class="never" data-hits="" data-linenumber="759">
4497
+ <li class="never" data-hits="" data-linenumber="735">
4642
4498
 
4643
4499
 
4644
4500
  <code class="ruby"> end</code>
4645
4501
  </li>
4646
4502
 
4647
- <li class="never" data-hits="" data-linenumber="760">
4503
+ <li class="never" data-hits="" data-linenumber="736">
4648
4504
 
4649
4505
 
4650
4506
  <code class="ruby"> end</code>
4651
4507
  </li>
4652
4508
 
4653
- <li class="never" data-hits="" data-linenumber="761">
4509
+ <li class="never" data-hits="" data-linenumber="737">
4654
4510
 
4655
4511
 
4656
4512
  <code class="ruby">end</code>
4657
4513
  </li>
4658
4514
 
4659
- <li class="never" data-hits="" data-linenumber="762">
4515
+ <li class="never" data-hits="" data-linenumber="738">
4660
4516
 
4661
4517
 
4662
4518
  <code class="ruby"></code>