net-ssh-simple 1.7.2 → 1.7.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 88b8dd6708314c8bf003970d08160f6ce8fc840b
4
- data.tar.gz: '0088d4551c413002b05b36121caf3597f4196125'
3
+ metadata.gz: '08a405b1c582583b138081e08762eba364f28a24'
4
+ data.tar.gz: 7959c38cf806280611a8a88ace54616ad9f39269
5
5
  SHA512:
6
- metadata.gz: 357663fa5569bb19ba1fa386a3e8ee13e1422e6a71ba38228afa16ff1a03efd7ebfc3919dd84f0bf2812c3ed70ecb4669c21a4916910eda80a1d5184f3ae85c3
7
- data.tar.gz: 3d1298061c93ca2d7186c0b849589e8181b0783790b924d1035bf156916321d8711efbcf688a2032ab2728903850ccf74b44e0be7f82e1e52715312f07e4a09d
6
+ metadata.gz: 0e3ebeecaa1e2db6e3575884dccd2f6126e4f2e1a1ce1fd2e61edc2bde8ec7aa2586658a48ade650bedd1b7c6c10562b48dc11feb53515265fc2c89901c9d86e
7
+ data.tar.gz: 22edbe9c25756e5e1e46f1e1a0b5ef231879ebeb4ccaf68986549a4f2e828a55c975bb9a18f09bce3dd81bdb1b7b0e4ac562840f5d83b18cbc21e824570a4a2a
@@ -490,34 +490,34 @@
490
490
  null,
491
491
  null,
492
492
  1,
493
- 70,
494
- 70,
495
- 69,
493
+ 68,
494
+ 68,
495
+ 67,
496
496
  null,
497
497
  null,
498
498
  null,
499
499
  null,
500
500
  null,
501
- 69,
502
- 69,
503
- 69,
504
- 69,
505
- 998,
506
- 998,
507
- 998,
501
+ 67,
502
+ 67,
503
+ 67,
504
+ 67,
505
+ 755,
506
+ 755,
507
+ 755,
508
508
  null,
509
- 69,
510
- 945,
511
- 945,
512
- 945,
509
+ 67,
510
+ 701,
511
+ 701,
512
+ 701,
513
513
  null,
514
- 69,
515
- 64,
516
- 64,
517
- 64,
518
- 64,
514
+ 67,
515
+ 62,
516
+ 62,
517
+ 62,
518
+ 62,
519
519
  null,
520
- 69,
520
+ 67,
521
521
  3,
522
522
  3,
523
523
  3,
@@ -527,13 +527,13 @@
527
527
  2,
528
528
  null,
529
529
  null,
530
- 69,
530
+ 67,
531
531
  null,
532
532
  null,
533
- 69,
534
- 65,
535
- 65,
536
- 65,
533
+ 67,
534
+ 63,
535
+ 63,
536
+ 63,
537
537
  null,
538
538
  null,
539
539
  null,
@@ -621,19 +621,19 @@
621
621
  1,
622
622
  null,
623
623
  1,
624
- 103,
625
- 103,
626
- 103,
627
- 103,
628
- 103,
629
- 103,
630
- 103,
631
- 594,
632
- 103,
633
- 103,
624
+ 101,
625
+ 101,
626
+ 101,
627
+ 101,
628
+ 101,
629
+ 101,
630
+ 101,
631
+ 584,
632
+ 101,
633
+ 101,
634
634
  null,
635
635
  null,
636
- 102,
636
+ 100,
637
637
  null,
638
638
  7,
639
639
  7,
@@ -646,17 +646,17 @@
646
646
  null,
647
647
  null,
648
648
  1,
649
- 102,
650
- 2263,
649
+ 100,
650
+ 2255,
651
651
  1,
652
652
  null,
653
653
  null,
654
654
  null,
655
- 2262,
656
- 105,
657
- 105,
655
+ 2254,
656
+ 104,
657
+ 104,
658
658
  null,
659
- 2262,
659
+ 2254,
660
660
  null,
661
661
  null,
662
662
  null,
@@ -756,6 +756,6 @@
756
756
  null
757
757
  ]
758
758
  },
759
- "timestamp": 1509104491
759
+ "timestamp": 1513817820
760
760
  }
761
761
  }
@@ -14,7 +14,7 @@
14
14
  <img src="./assets/0.10.0/loading.gif" alt="loading"/>
15
15
  </div>
16
16
  <div id="wrapper" style="display:none;">
17
- <div class="timestamp">Generated <abbr class="timeago" title="2017-10-27T13:41:31+02:00">2017-10-27T13:41:31+02:00</abbr></div>
17
+ <div class="timestamp">Generated <abbr class="timeago" title="2017-12-21T01:57:00+01:00">2017-12-21T01:57:00+01:00</abbr></div>
18
18
  <ul class="group_tabs"></ul>
19
19
 
20
20
  <div id="content">
@@ -25,7 +25,7 @@
25
25
  covered at
26
26
  <span class="covered_strength">
27
27
  <span class="green">
28
- 104.4
28
+ 95.1
29
29
  </span>
30
30
  </span> hits/line)
31
31
  </h2>
@@ -57,7 +57,7 @@
57
57
  <td>167</td>
58
58
  <td>167</td>
59
59
  <td>0</td>
60
- <td>104.4</td>
60
+ <td>95.1</td>
61
61
  </tr>
62
62
 
63
63
  </tbody>
@@ -3018,20 +3018,20 @@
3018
3018
  <code class="ruby"> def ssh(host, cmd, opts={}, &amp;block)</code>
3019
3019
  </li>
3020
3020
 
3021
- <li class="covered" data-hits="70" data-linenumber="489">
3022
- <span class="hits">70</span>
3021
+ <li class="covered" data-hits="68" data-linenumber="489">
3022
+ <span class="hits">68</span>
3023
3023
 
3024
3024
  <code class="ruby"> opts = @opts.merge(opts)</code>
3025
3025
  </li>
3026
3026
 
3027
- <li class="covered" data-hits="70" data-linenumber="490">
3028
- <span class="hits">70</span>
3027
+ <li class="covered" data-hits="68" data-linenumber="490">
3028
+ <span class="hits">68</span>
3029
3029
 
3030
3030
  <code class="ruby"> with_session(host, opts) do |session|</code>
3031
3031
  </li>
3032
3032
 
3033
- <li class="covered" data-hits="69" data-linenumber="491">
3034
- <span class="hits">69</span>
3033
+ <li class="covered" data-hits="67" data-linenumber="491">
3034
+ <span class="hits">67</span>
3035
3035
 
3036
3036
  <code class="ruby"> @result = Result.new(</code>
3037
3037
  </li>
@@ -3066,44 +3066,44 @@
3066
3066
  <code class="ruby"></code>
3067
3067
  </li>
3068
3068
 
3069
- <li class="covered" data-hits="69" data-linenumber="497">
3070
- <span class="hits">69</span>
3069
+ <li class="covered" data-hits="67" data-linenumber="497">
3070
+ <span class="hits">67</span>
3071
3071
 
3072
3072
  <code class="ruby"> channel = session.open_channel do |chan|</code>
3073
3073
  </li>
3074
3074
 
3075
- <li class="covered" data-hits="69" data-linenumber="498">
3076
- <span class="hits">69</span>
3075
+ <li class="covered" data-hits="67" data-linenumber="498">
3076
+ <span class="hits">67</span>
3077
3077
 
3078
3078
  <code class="ruby"> chan.exec cmd do |ch, success|</code>
3079
3079
  </li>
3080
3080
 
3081
- <li class="covered" data-hits="69" data-linenumber="499">
3082
- <span class="hits">69</span>
3081
+ <li class="covered" data-hits="67" data-linenumber="499">
3082
+ <span class="hits">67</span>
3083
3083
 
3084
3084
  <code class="ruby"> @result[:success] = success</code>
3085
3085
  </li>
3086
3086
 
3087
- <li class="covered" data-hits="69" data-linenumber="500">
3088
- <span class="hits">69</span>
3087
+ <li class="covered" data-hits="67" data-linenumber="500">
3088
+ <span class="hits">67</span>
3089
3089
 
3090
3090
  <code class="ruby"> ch.on_data do |c, data|</code>
3091
3091
  </li>
3092
3092
 
3093
- <li class="covered" data-hits="998" data-linenumber="501">
3094
- <span class="hits">998</span>
3093
+ <li class="covered" data-hits="755" data-linenumber="501">
3094
+ <span class="hits">755</span>
3095
3095
 
3096
3096
  <code class="ruby"> @result[:last_event_at] = Time.new</code>
3097
3097
  </li>
3098
3098
 
3099
- <li class="covered" data-hits="998" data-linenumber="502">
3100
- <span class="hits">998</span>
3099
+ <li class="covered" data-hits="755" data-linenumber="502">
3100
+ <span class="hits">755</span>
3101
3101
 
3102
3102
  <code class="ruby"> r = block.call(:stdout, ch, data) if block</code>
3103
3103
  </li>
3104
3104
 
3105
- <li class="covered" data-hits="998" data-linenumber="503">
3106
- <span class="hits">998</span>
3105
+ <li class="covered" data-hits="755" data-linenumber="503">
3106
+ <span class="hits">755</span>
3107
3107
 
3108
3108
  <code class="ruby"> @result[:stdout] += data.to_s unless r == :no_append</code>
3109
3109
  </li>
@@ -3114,26 +3114,26 @@
3114
3114
  <code class="ruby"> end</code>
3115
3115
  </li>
3116
3116
 
3117
- <li class="covered" data-hits="69" data-linenumber="505">
3118
- <span class="hits">69</span>
3117
+ <li class="covered" data-hits="67" data-linenumber="505">
3118
+ <span class="hits">67</span>
3119
3119
 
3120
3120
  <code class="ruby"> ch.on_extended_data do |c, type, data|</code>
3121
3121
  </li>
3122
3122
 
3123
- <li class="covered" data-hits="945" data-linenumber="506">
3124
- <span class="hits">945</span>
3123
+ <li class="covered" data-hits="701" data-linenumber="506">
3124
+ <span class="hits">701</span>
3125
3125
 
3126
3126
  <code class="ruby"> @result[:last_event_at] = Time.new</code>
3127
3127
  </li>
3128
3128
 
3129
- <li class="covered" data-hits="945" data-linenumber="507">
3130
- <span class="hits">945</span>
3129
+ <li class="covered" data-hits="701" data-linenumber="507">
3130
+ <span class="hits">701</span>
3131
3131
 
3132
3132
  <code class="ruby"> r = block.call(:stderr, ch, data) if block</code>
3133
3133
  </li>
3134
3134
 
3135
- <li class="covered" data-hits="945" data-linenumber="508">
3136
- <span class="hits">945</span>
3135
+ <li class="covered" data-hits="701" data-linenumber="508">
3136
+ <span class="hits">701</span>
3137
3137
 
3138
3138
  <code class="ruby"> @result[:stderr] += data.to_s unless r == :no_append</code>
3139
3139
  </li>
@@ -3144,32 +3144,32 @@
3144
3144
  <code class="ruby"> end</code>
3145
3145
  </li>
3146
3146
 
3147
- <li class="covered" data-hits="69" data-linenumber="510">
3148
- <span class="hits">69</span>
3147
+ <li class="covered" data-hits="67" data-linenumber="510">
3148
+ <span class="hits">67</span>
3149
3149
 
3150
3150
  <code class="ruby"> ch.on_request(&#39;exit-status&#39;) do |c, data|</code>
3151
3151
  </li>
3152
3152
 
3153
- <li class="covered" data-hits="64" data-linenumber="511">
3154
- <span class="hits">64</span>
3153
+ <li class="covered" data-hits="62" data-linenumber="511">
3154
+ <span class="hits">62</span>
3155
3155
 
3156
3156
  <code class="ruby"> @result[:last_event_at] = Time.new</code>
3157
3157
  </li>
3158
3158
 
3159
- <li class="covered" data-hits="64" data-linenumber="512">
3160
- <span class="hits">64</span>
3159
+ <li class="covered" data-hits="62" data-linenumber="512">
3160
+ <span class="hits">62</span>
3161
3161
 
3162
3162
  <code class="ruby"> exit_code = data.read_long</code>
3163
3163
  </li>
3164
3164
 
3165
- <li class="covered" data-hits="64" data-linenumber="513">
3166
- <span class="hits">64</span>
3165
+ <li class="covered" data-hits="62" data-linenumber="513">
3166
+ <span class="hits">62</span>
3167
3167
 
3168
3168
  <code class="ruby"> block.call(:exit_code, ch, exit_code) if block</code>
3169
3169
  </li>
3170
3170
 
3171
- <li class="covered" data-hits="64" data-linenumber="514">
3172
- <span class="hits">64</span>
3171
+ <li class="covered" data-hits="62" data-linenumber="514">
3172
+ <span class="hits">62</span>
3173
3173
 
3174
3174
  <code class="ruby"> @result[:exit_code] = exit_code</code>
3175
3175
  </li>
@@ -3180,8 +3180,8 @@
3180
3180
  <code class="ruby"> end</code>
3181
3181
  </li>
3182
3182
 
3183
- <li class="covered" data-hits="69" data-linenumber="516">
3184
- <span class="hits">69</span>
3183
+ <li class="covered" data-hits="67" data-linenumber="516">
3184
+ <span class="hits">67</span>
3185
3185
 
3186
3186
  <code class="ruby"> ch.on_request(&#39;exit-signal&#39;) do |c, data|</code>
3187
3187
  </li>
@@ -3240,8 +3240,8 @@
3240
3240
  <code class="ruby"> end</code>
3241
3241
  </li>
3242
3242
 
3243
- <li class="covered" data-hits="69" data-linenumber="526">
3244
- <span class="hits">69</span>
3243
+ <li class="covered" data-hits="67" data-linenumber="526">
3244
+ <span class="hits">67</span>
3245
3245
 
3246
3246
  <code class="ruby"> block.call(:start, ch, nil) if block</code>
3247
3247
  </li>
@@ -3258,26 +3258,26 @@
3258
3258
  <code class="ruby"> end</code>
3259
3259
  </li>
3260
3260
 
3261
- <li class="covered" data-hits="69" data-linenumber="529">
3262
- <span class="hits">69</span>
3261
+ <li class="covered" data-hits="67" data-linenumber="529">
3262
+ <span class="hits">67</span>
3263
3263
 
3264
3264
  <code class="ruby"> wait_for_channel session, channel, @result, opts</code>
3265
3265
  </li>
3266
3266
 
3267
- <li class="covered" data-hits="65" data-linenumber="530">
3268
- <span class="hits">65</span>
3267
+ <li class="covered" data-hits="63" data-linenumber="530">
3268
+ <span class="hits">63</span>
3269
3269
 
3270
3270
  <code class="ruby"> @result[:finish_at] = Time.new</code>
3271
3271
  </li>
3272
3272
 
3273
- <li class="covered" data-hits="65" data-linenumber="531">
3274
- <span class="hits">65</span>
3273
+ <li class="covered" data-hits="63" data-linenumber="531">
3274
+ <span class="hits">63</span>
3275
3275
 
3276
3276
  <code class="ruby"> block.call(:finish, channel, nil) if block</code>
3277
3277
  </li>
3278
3278
 
3279
- <li class="covered" data-hits="65" data-linenumber="532">
3280
- <span class="hits">65</span>
3279
+ <li class="covered" data-hits="63" data-linenumber="532">
3280
+ <span class="hits">63</span>
3281
3281
 
3282
3282
  <code class="ruby"> @result</code>
3283
3283
  </li>
@@ -3804,62 +3804,62 @@
3804
3804
  <code class="ruby"> def with_session(host, opts={}, &amp;block)</code>
3805
3805
  </li>
3806
3806
 
3807
- <li class="covered" data-hits="103" data-linenumber="620">
3808
- <span class="hits">103</span>
3807
+ <li class="covered" data-hits="101" data-linenumber="620">
3808
+ <span class="hits">101</span>
3809
3809
 
3810
3810
  <code class="ruby"> opts[:timeout] ||= 60</code>
3811
3811
  </li>
3812
3812
 
3813
- <li class="covered" data-hits="103" data-linenumber="621">
3814
- <span class="hits">103</span>
3813
+ <li class="covered" data-hits="101" data-linenumber="621">
3814
+ <span class="hits">101</span>
3815
3815
 
3816
3816
  <code class="ruby"> opts[:timeout] = MAX_TIMEOUT if opts[:timeout] == 0</code>
3817
3817
  </li>
3818
3818
 
3819
- <li class="covered" data-hits="103" data-linenumber="622">
3820
- <span class="hits">103</span>
3819
+ <li class="covered" data-hits="101" data-linenumber="622">
3820
+ <span class="hits">101</span>
3821
3821
 
3822
3822
  <code class="ruby"> opts[:operation_timeout] ||= 3600</code>
3823
3823
  </li>
3824
3824
 
3825
- <li class="covered" data-hits="103" data-linenumber="623">
3826
- <span class="hits">103</span>
3825
+ <li class="covered" data-hits="101" data-linenumber="623">
3826
+ <span class="hits">101</span>
3827
3827
 
3828
3828
  <code class="ruby"> opts[:operation_timeout] = MAX_TIMEOUT if opts[:operation_timeout] == 0</code>
3829
3829
  </li>
3830
3830
 
3831
- <li class="covered" data-hits="103" data-linenumber="624">
3832
- <span class="hits">103</span>
3831
+ <li class="covered" data-hits="101" data-linenumber="624">
3832
+ <span class="hits">101</span>
3833
3833
 
3834
3834
  <code class="ruby"> opts[:close_timeout] ||= 5</code>
3835
3835
  </li>
3836
3836
 
3837
- <li class="covered" data-hits="103" data-linenumber="625">
3838
- <span class="hits">103</span>
3837
+ <li class="covered" data-hits="101" data-linenumber="625">
3838
+ <span class="hits">101</span>
3839
3839
 
3840
3840
  <code class="ruby"> opts[:keepalive_interval] ||= 60</code>
3841
3841
  </li>
3842
3842
 
3843
- <li class="covered" data-hits="103" data-linenumber="626">
3844
- <span class="hits">103</span>
3843
+ <li class="covered" data-hits="101" data-linenumber="626">
3844
+ <span class="hits">101</span>
3845
3845
 
3846
3846
  <code class="ruby"> begin</code>
3847
3847
  </li>
3848
3848
 
3849
- <li class="covered" data-hits="594" data-linenumber="627">
3850
- <span class="hits">594</span>
3849
+ <li class="covered" data-hits="584" data-linenumber="627">
3850
+ <span class="hits">584</span>
3851
3851
 
3852
3852
  <code class="ruby"> net_ssh_opts = opts.reject{|k,v| EXTRA_OPTS.include? k }</code>
3853
3853
  </li>
3854
3854
 
3855
- <li class="covered" data-hits="103" data-linenumber="628">
3856
- <span class="hits">103</span>
3855
+ <li class="covered" data-hits="101" data-linenumber="628">
3856
+ <span class="hits">101</span>
3857
3857
 
3858
3858
  <code class="ruby"> ::Timeout.timeout(opts[:operation_timeout]) do</code>
3859
3859
  </li>
3860
3860
 
3861
- <li class="covered" data-hits="103" data-linenumber="629">
3862
- <span class="hits">103</span>
3861
+ <li class="covered" data-hits="101" data-linenumber="629">
3862
+ <span class="hits">101</span>
3863
3863
 
3864
3864
  <code class="ruby"> session = Thread.current[:ssh_simple_sessions][host.hash] \</code>
3865
3865
  </li>
@@ -3876,8 +3876,8 @@
3876
3876
  <code class="ruby"> || Net::SSH.start(*[host, opts[:user], net_ssh_opts])</code>
3877
3877
  </li>
3878
3878
 
3879
- <li class="covered" data-hits="102" data-linenumber="632">
3880
- <span class="hits">102</span>
3879
+ <li class="covered" data-hits="100" data-linenumber="632">
3880
+ <span class="hits">100</span>
3881
3881
 
3882
3882
  <code class="ruby"> block.call(session)</code>
3883
3883
  </li>
@@ -3954,14 +3954,14 @@
3954
3954
  <code class="ruby"> def wait_for_channel(session, channel, result, opts)</code>
3955
3955
  </li>
3956
3956
 
3957
- <li class="covered" data-hits="102" data-linenumber="645">
3958
- <span class="hits">102</span>
3957
+ <li class="covered" data-hits="100" data-linenumber="645">
3958
+ <span class="hits">100</span>
3959
3959
 
3960
3960
  <code class="ruby"> session.loop(1) do</code>
3961
3961
  </li>
3962
3962
 
3963
- <li class="covered" data-hits="2263" data-linenumber="646">
3964
- <span class="hits">2263</span>
3963
+ <li class="covered" data-hits="2255" data-linenumber="646">
3964
+ <span class="hits">2255</span>
3965
3965
 
3966
3966
  <code class="ruby"> if opts[:timeout] &lt; Time.now - result[:last_event_at]</code>
3967
3967
  </li>
@@ -3990,20 +3990,20 @@
3990
3990
  <code class="ruby"> # Send keep-alive probes at the configured interval.</code>
3991
3991
  </li>
3992
3992
 
3993
- <li class="covered" data-hits="2262" data-linenumber="651">
3994
- <span class="hits">2262</span>
3993
+ <li class="covered" data-hits="2254" data-linenumber="651">
3994
+ <span class="hits">2254</span>
3995
3995
 
3996
3996
  <code class="ruby"> if opts[:keepalive_interval] &lt; Time.now.to_i - (@result[:last_keepalive_at]||0).to_i</code>
3997
3997
  </li>
3998
3998
 
3999
- <li class="covered" data-hits="105" data-linenumber="652">
4000
- <span class="hits">105</span>
3999
+ <li class="covered" data-hits="104" data-linenumber="652">
4000
+ <span class="hits">104</span>
4001
4001
 
4002
4002
  <code class="ruby"> session.send_global_request(&#39;keep-alive@openssh.com&#39;)</code>
4003
4003
  </li>
4004
4004
 
4005
- <li class="covered" data-hits="105" data-linenumber="653">
4006
- <span class="hits">105</span>
4005
+ <li class="covered" data-hits="104" data-linenumber="653">
4006
+ <span class="hits">104</span>
4007
4007
 
4008
4008
  <code class="ruby"> @result[:last_keepalive_at] = Time.now</code>
4009
4009
  </li>
@@ -4014,8 +4014,8 @@
4014
4014
  <code class="ruby"> end</code>
4015
4015
  </li>
4016
4016
 
4017
- <li class="covered" data-hits="2262" data-linenumber="655">
4018
- <span class="hits">2262</span>
4017
+ <li class="covered" data-hits="2254" data-linenumber="655">
4018
+ <span class="hits">2254</span>
4019
4019
 
4020
4020
  <code class="ruby"> channel.active?</code>
4021
4021
  </li>