net-ssh-simple 1.6.6 → 1.6.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.rdoc +1 -1
- data/coverage/.resultset.json +45 -45
- data/coverage/assets/0.8.0/application.css +799 -0
- data/coverage/assets/0.8.0/application.js +1559 -0
- data/coverage/assets/0.8.0/colorbox/border.png +0 -0
- data/coverage/assets/0.8.0/colorbox/controls.png +0 -0
- data/coverage/assets/0.8.0/colorbox/loading.gif +0 -0
- data/coverage/assets/0.8.0/colorbox/loading_background.png +0 -0
- data/coverage/assets/0.8.0/favicon_green.png +0 -0
- data/coverage/assets/0.8.0/favicon_red.png +0 -0
- data/coverage/assets/0.8.0/favicon_yellow.png +0 -0
- data/coverage/assets/0.8.0/loading.gif +0 -0
- data/coverage/assets/0.8.0/magnify.png +0 -0
- data/coverage/assets/0.8.0/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/coverage/assets/0.8.0/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/coverage/assets/0.8.0/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/coverage/assets/0.8.0/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/coverage/assets/0.8.0/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/coverage/assets/0.8.0/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/coverage/assets/0.8.0/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/coverage/assets/0.8.0/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/coverage/assets/0.8.0/smoothness/images/ui-icons_222222_256x240.png +0 -0
- data/coverage/assets/0.8.0/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
- data/coverage/assets/0.8.0/smoothness/images/ui-icons_454545_256x240.png +0 -0
- data/coverage/assets/0.8.0/smoothness/images/ui-icons_888888_256x240.png +0 -0
- data/coverage/assets/0.8.0/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/coverage/index.html +98 -98
- data/doc/Net.html +4 -4
- data/doc/Net/SSH.html +4 -4
- data/doc/Net/SSH/Simple.html +7 -7
- data/doc/Net/SSH/Simple/Error.html +4 -4
- data/doc/Net/SSH/Simple/Result.html +4 -4
- data/doc/_index.html +5 -5
- data/doc/class_list.html +5 -1
- data/doc/css/style.css +1 -0
- data/doc/file.README.html +6 -6
- data/doc/file_list.html +5 -1
- data/doc/frames.html +1 -1
- data/doc/index.html +6 -6
- data/doc/js/full_list.js +4 -1
- data/doc/method_list.html +5 -1
- data/doc/top-level-namespace.html +4 -4
- data/lib/net/ssh/simple.rb +4 -4
- data/lib/net/ssh/simple/version.rb +1 -1
- data/net-ssh-simple.gemspec +1 -1
- metadata +30 -6
data/doc/Net.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Module: Net
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.7.
|
9
|
+
— Documentation by YARD 0.8.7.6
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -17,7 +17,7 @@
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
18
|
hasFrames = window.top.frames.main ? true : false;
|
19
19
|
relpath = '';
|
20
|
-
framesUrl = "frames.html#!"
|
20
|
+
framesUrl = "frames.html#!Net.html";
|
21
21
|
</script>
|
22
22
|
|
23
23
|
|
@@ -108,9 +108,9 @@
|
|
108
108
|
</div>
|
109
109
|
|
110
110
|
<div id="footer">
|
111
|
-
Generated on
|
111
|
+
Generated on Sun Feb 8 17:50:07 2015 by
|
112
112
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
113
|
-
0.8.7.
|
113
|
+
0.8.7.6 (ruby-2.1.3).
|
114
114
|
</div>
|
115
115
|
|
116
116
|
</body>
|
data/doc/Net/SSH.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Module: Net::SSH
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.7.
|
9
|
+
— Documentation by YARD 0.8.7.6
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -17,7 +17,7 @@
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
18
|
hasFrames = window.top.frames.main ? true : false;
|
19
19
|
relpath = '../';
|
20
|
-
framesUrl = "../frames.html#!"
|
20
|
+
framesUrl = "../frames.html#!Net/SSH.html";
|
21
21
|
</script>
|
22
22
|
|
23
23
|
|
@@ -108,9 +108,9 @@
|
|
108
108
|
</div>
|
109
109
|
|
110
110
|
<div id="footer">
|
111
|
-
Generated on
|
111
|
+
Generated on Sun Feb 8 17:50:07 2015 by
|
112
112
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
113
|
-
0.8.7.
|
113
|
+
0.8.7.6 (ruby-2.1.3).
|
114
114
|
</div>
|
115
115
|
|
116
116
|
</body>
|
data/doc/Net/SSH/Simple.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: Net::SSH::Simple
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.7.
|
9
|
+
— Documentation by YARD 0.8.7.6
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -17,7 +17,7 @@
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
18
|
hasFrames = window.top.frames.main ? true : false;
|
19
19
|
relpath = '../../';
|
20
|
-
framesUrl = "../../frames.html#!"
|
20
|
+
framesUrl = "../../frames.html#!Net/SSH/Simple.html";
|
21
21
|
</script>
|
22
22
|
|
23
23
|
|
@@ -380,7 +380,7 @@
|
|
380
380
|
<dt id="VERSION-constant" class="">VERSION =
|
381
381
|
|
382
382
|
</dt>
|
383
|
-
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>1.6.
|
383
|
+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>1.6.6</span><span class='tstring_end'>"</span></span></pre></dd>
|
384
384
|
|
385
385
|
</dl>
|
386
386
|
|
@@ -1694,7 +1694,7 @@ create a new connection for each invocation.</p>
|
|
1694
1694
|
<span class='kw'>def</span> <span class='id identifier rubyid_close'>close</span>
|
1695
1695
|
<span class='const'>Thread</span><span class='period'>.</span><span class='id identifier rubyid_current'>current</span><span class='lbracket'>[</span><span class='symbol'>:ssh_simple_sessions</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_values'>values</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_session'>session</span><span class='op'>|</span>
|
1696
1696
|
<span class='kw'>begin</span>
|
1697
|
-
<span class='const'>Timeout</span><span class='period'>.</span><span class='id identifier rubyid_timeout'>timeout</span><span class='lparen'>(</span><span class='ivar'>@opts</span><span class='lbracket'>[</span><span class='symbol'>:close_timeout</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='int'>5</span><span class='rparen'>)</span> <span class='lbrace'>{</span> <span class='id identifier rubyid_session'>session</span><span class='period'>.</span><span class='id identifier rubyid_close'>close</span> <span class='rbrace'>}</span>
|
1697
|
+
<span class='op'>::</span><span class='const'>Timeout</span><span class='period'>.</span><span class='id identifier rubyid_timeout'>timeout</span><span class='lparen'>(</span><span class='ivar'>@opts</span><span class='lbracket'>[</span><span class='symbol'>:close_timeout</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='int'>5</span><span class='rparen'>)</span> <span class='lbrace'>{</span> <span class='id identifier rubyid_session'>session</span><span class='period'>.</span><span class='id identifier rubyid_close'>close</span> <span class='rbrace'>}</span>
|
1698
1698
|
<span class='kw'>rescue</span> <span class='op'>=></span> <span class='id identifier rubyid_e'>e</span>
|
1699
1699
|
<span class='kw'>begin</span>
|
1700
1700
|
<span class='id identifier rubyid_session'>session</span><span class='period'>.</span><span class='id identifier rubyid_shutdown!'>shutdown!</span>
|
@@ -2547,7 +2547,7 @@ out unexpectedly.</p>
|
|
2547
2547
|
<span class="default">
|
2548
2548
|
|
2549
2549
|
— default:
|
2550
|
-
<tt>['~/.ssh/known_hosts
|
2550
|
+
<tt>['~/.ssh/known_hosts, ~/.ssh/known_hosts2']</tt>
|
2551
2551
|
|
2552
2552
|
</span>
|
2553
2553
|
|
@@ -2719,9 +2719,9 @@ are translated to the corresponding Logger constant.</p>
|
|
2719
2719
|
</div>
|
2720
2720
|
|
2721
2721
|
<div id="footer">
|
2722
|
-
Generated on
|
2722
|
+
Generated on Sun Feb 8 17:50:08 2015 by
|
2723
2723
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
2724
|
-
0.8.7.
|
2724
|
+
0.8.7.6 (ruby-2.1.3).
|
2725
2725
|
</div>
|
2726
2726
|
|
2727
2727
|
</body>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Exception: Net::SSH::Simple::Error
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.7.
|
9
|
+
— Documentation by YARD 0.8.7.6
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -17,7 +17,7 @@
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
18
|
hasFrames = window.top.frames.main ? true : false;
|
19
19
|
relpath = '../../../';
|
20
|
-
framesUrl = "../../../frames.html#!"
|
20
|
+
framesUrl = "../../../frames.html#!Net/SSH/Simple/Error.html";
|
21
21
|
</script>
|
22
22
|
|
23
23
|
|
@@ -425,9 +425,9 @@ incomplete!).</p>
|
|
425
425
|
</div>
|
426
426
|
|
427
427
|
<div id="footer">
|
428
|
-
Generated on
|
428
|
+
Generated on Sun Feb 8 17:50:08 2015 by
|
429
429
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
430
|
-
0.8.7.
|
430
|
+
0.8.7.6 (ruby-2.1.3).
|
431
431
|
</div>
|
432
432
|
|
433
433
|
</body>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: Net::SSH::Simple::Result
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.7.
|
9
|
+
— Documentation by YARD 0.8.7.6
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -17,7 +17,7 @@
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
18
|
hasFrames = window.top.frames.main ? true : false;
|
19
19
|
relpath = '../../../';
|
20
|
-
framesUrl = "../../../frames.html#!"
|
20
|
+
framesUrl = "../../../frames.html#!Net/SSH/Simple/Result.html";
|
21
21
|
</script>
|
22
22
|
|
23
23
|
|
@@ -1631,9 +1631,9 @@
|
|
1631
1631
|
</div>
|
1632
1632
|
|
1633
1633
|
<div id="footer">
|
1634
|
-
Generated on
|
1634
|
+
Generated on Sun Feb 8 17:50:08 2015 by
|
1635
1635
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1636
|
-
0.8.7.
|
1636
|
+
0.8.7.6 (ruby-2.1.3).
|
1637
1637
|
</div>
|
1638
1638
|
|
1639
1639
|
</body>
|
data/doc/_index.html
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
<head>
|
5
5
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
6
|
<title>
|
7
|
-
Documentation by YARD 0.8.7.
|
7
|
+
Documentation by YARD 0.8.7.6
|
8
8
|
|
9
9
|
</title>
|
10
10
|
|
@@ -15,7 +15,7 @@
|
|
15
15
|
<script type="text/javascript" charset="utf-8">
|
16
16
|
hasFrames = window.top.frames.main ? true : false;
|
17
17
|
relpath = '';
|
18
|
-
framesUrl = "frames.html#!"
|
18
|
+
framesUrl = "frames.html#!_index.html";
|
19
19
|
</script>
|
20
20
|
|
21
21
|
|
@@ -56,7 +56,7 @@
|
|
56
56
|
|
57
57
|
<iframe id="search_frame"></iframe>
|
58
58
|
|
59
|
-
<div id="content"><h1 class="noborder title">Documentation by YARD 0.8.7.
|
59
|
+
<div id="content"><h1 class="noborder title">Documentation by YARD 0.8.7.6</h1>
|
60
60
|
<div id="listing">
|
61
61
|
<h1 class="alphaindex">Alphabetic Index</h1>
|
62
62
|
|
@@ -153,9 +153,9 @@
|
|
153
153
|
</div>
|
154
154
|
|
155
155
|
<div id="footer">
|
156
|
-
Generated on
|
156
|
+
Generated on Sun Feb 8 17:50:07 2015 by
|
157
157
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
158
|
-
0.8.7.
|
158
|
+
0.8.7.6 (ruby-2.1.3).
|
159
159
|
</div>
|
160
160
|
|
161
161
|
</body>
|
data/doc/class_list.html
CHANGED
@@ -20,7 +20,11 @@
|
|
20
20
|
</head>
|
21
21
|
<body>
|
22
22
|
<script type="text/javascript" charset="utf-8">
|
23
|
-
|
23
|
+
var hasFrames = false;
|
24
|
+
try {
|
25
|
+
hasFrames = window.top.frames.main ? true : false;
|
26
|
+
} catch (e) { }
|
27
|
+
if (hasFrames) {
|
24
28
|
document.getElementById('base_target').target = 'main';
|
25
29
|
document.body.className = 'frames';
|
26
30
|
}
|
data/doc/css/style.css
CHANGED
@@ -291,6 +291,7 @@ li.r2 { background: #fafafa; }
|
|
291
291
|
-moz-box-shadow: -2px 2px 6px #bbb;
|
292
292
|
z-index: 5000;
|
293
293
|
position: relative;
|
294
|
+
overflow-x: auto;
|
294
295
|
}
|
295
296
|
#toc.nofloat { float: none; max-width: none; border: none; padding: 0; margin: 20px 0; -webkit-box-shadow: none; -moz-box-shadow: none; }
|
296
297
|
#toc.nofloat.hidden { padding: 0; background: 0; margin-bottom: 5px; }
|
data/doc/file.README.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
File: README
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.7.
|
9
|
+
— Documentation by YARD 0.8.7.6
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -17,7 +17,7 @@
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
18
|
hasFrames = window.top.frames.main ? true : false;
|
19
19
|
relpath = '';
|
20
|
-
framesUrl = "frames.html#!
|
20
|
+
framesUrl = "frames.html#!file.README.html";
|
21
21
|
</script>
|
22
22
|
|
23
23
|
|
@@ -89,8 +89,8 @@ href="http://busyloop.github.com/net-ssh-simple/doc/Net/SSH/Simple/Error">Net::S
|
|
89
89
|
</li><li>
|
90
90
|
<p>Lots of documentation</p>
|
91
91
|
</li><li>
|
92
|
-
<p><a href="http://busyloop.github.com/net-ssh-simple/coverage/">
|
93
|
-
coverage</p>
|
92
|
+
<p><a href="http://busyloop.github.com/net-ssh-simple/coverage/">98.8%</a>
|
93
|
+
test coverage</p>
|
94
94
|
</li></ul>
|
95
95
|
|
96
96
|
<h2 id="label-Installation">Installation</h2>
|
@@ -253,9 +253,9 @@ DEALINGS IN THE SOFTWARE.</p>
|
|
253
253
|
</div></div>
|
254
254
|
|
255
255
|
<div id="footer">
|
256
|
-
Generated on
|
256
|
+
Generated on Sun Feb 8 17:50:07 2015 by
|
257
257
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
258
|
-
0.8.7.
|
258
|
+
0.8.7.6 (ruby-2.1.3).
|
259
259
|
</div>
|
260
260
|
|
261
261
|
</body>
|
data/doc/file_list.html
CHANGED
@@ -20,7 +20,11 @@
|
|
20
20
|
</head>
|
21
21
|
<body>
|
22
22
|
<script type="text/javascript" charset="utf-8">
|
23
|
-
|
23
|
+
var hasFrames = false;
|
24
|
+
try {
|
25
|
+
hasFrames = window.top.frames.main ? true : false;
|
26
|
+
} catch (e) { }
|
27
|
+
if (hasFrames) {
|
24
28
|
document.getElementById('base_target').target = 'main';
|
25
29
|
document.body.className = 'frames';
|
26
30
|
}
|
data/doc/frames.html
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
5
5
|
<head>
|
6
6
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
7
|
-
<title>Documentation by YARD 0.8.7.
|
7
|
+
<title>Documentation by YARD 0.8.7.6</title>
|
8
8
|
</head>
|
9
9
|
<script type="text/javascript" charset="utf-8">
|
10
10
|
window.onload = function() {
|
data/doc/index.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
File: README
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.7.
|
9
|
+
— Documentation by YARD 0.8.7.6
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -17,7 +17,7 @@
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
18
|
hasFrames = window.top.frames.main ? true : false;
|
19
19
|
relpath = '';
|
20
|
-
framesUrl = "frames.html#!
|
20
|
+
framesUrl = "frames.html#!file.README.html";
|
21
21
|
</script>
|
22
22
|
|
23
23
|
|
@@ -89,8 +89,8 @@ href="http://busyloop.github.com/net-ssh-simple/doc/Net/SSH/Simple/Error">Net::S
|
|
89
89
|
</li><li>
|
90
90
|
<p>Lots of documentation</p>
|
91
91
|
</li><li>
|
92
|
-
<p><a href="http://busyloop.github.com/net-ssh-simple/coverage/">
|
93
|
-
coverage</p>
|
92
|
+
<p><a href="http://busyloop.github.com/net-ssh-simple/coverage/">98.8%</a>
|
93
|
+
test coverage</p>
|
94
94
|
</li></ul>
|
95
95
|
|
96
96
|
<h2 id="label-Installation">Installation</h2>
|
@@ -253,9 +253,9 @@ DEALINGS IN THE SOFTWARE.</p>
|
|
253
253
|
</div></div>
|
254
254
|
|
255
255
|
<div id="footer">
|
256
|
-
Generated on
|
256
|
+
Generated on Sun Feb 8 17:50:07 2015 by
|
257
257
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
258
|
-
0.8.7.
|
258
|
+
0.8.7.6 (ruby-2.1.3).
|
259
259
|
</div>
|
260
260
|
|
261
261
|
</body>
|
data/doc/js/full_list.js
CHANGED
@@ -123,7 +123,10 @@ function linkList() {
|
|
123
123
|
}
|
124
124
|
}
|
125
125
|
if (clicked) clicked.removeClass('clicked');
|
126
|
-
var win
|
126
|
+
var win;
|
127
|
+
try {
|
128
|
+
win = window.top.frames.main ? window.top.frames.main : window.parent;
|
129
|
+
} catch (e) { win = window.parent; }
|
127
130
|
if (this.tagName.toLowerCase() == "a") {
|
128
131
|
clicked = $(this).parents('li').addClass('clicked');
|
129
132
|
win.location = this.href;
|
data/doc/method_list.html
CHANGED
@@ -20,7 +20,11 @@
|
|
20
20
|
</head>
|
21
21
|
<body>
|
22
22
|
<script type="text/javascript" charset="utf-8">
|
23
|
-
|
23
|
+
var hasFrames = false;
|
24
|
+
try {
|
25
|
+
hasFrames = window.top.frames.main ? true : false;
|
26
|
+
} catch (e) { }
|
27
|
+
if (hasFrames) {
|
24
28
|
document.getElementById('base_target').target = 'main';
|
25
29
|
document.body.className = 'frames';
|
26
30
|
}
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Top Level Namespace
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.7.
|
9
|
+
— Documentation by YARD 0.8.7.6
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -17,7 +17,7 @@
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
18
|
hasFrames = window.top.frames.main ? true : false;
|
19
19
|
relpath = '';
|
20
|
-
framesUrl = "frames.html#!"
|
20
|
+
framesUrl = "frames.html#!top-level-namespace.html";
|
21
21
|
</script>
|
22
22
|
|
23
23
|
|
@@ -103,9 +103,9 @@
|
|
103
103
|
</div>
|
104
104
|
|
105
105
|
<div id="footer">
|
106
|
-
Generated on
|
106
|
+
Generated on Sun Feb 8 17:50:07 2015 by
|
107
107
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
108
|
-
0.8.7.
|
108
|
+
0.8.7.6 (ruby-2.1.3).
|
109
109
|
</div>
|
110
110
|
|
111
111
|
</body>
|
data/lib/net/ssh/simple.rb
CHANGED
@@ -587,7 +587,7 @@ module Net
|
|
587
587
|
def close
|
588
588
|
Thread.current[:ssh_simple_sessions].values.each do |session|
|
589
589
|
begin
|
590
|
-
Timeout.timeout(@opts[:close_timeout] || 5) { session.close }
|
590
|
+
::Timeout.timeout(@opts[:close_timeout] || 5) { session.close }
|
591
591
|
rescue => e
|
592
592
|
begin
|
593
593
|
session.shutdown!
|
@@ -617,7 +617,7 @@ module Net
|
|
617
617
|
opts[:keepalive_interval] ||= 60
|
618
618
|
begin
|
619
619
|
net_ssh_opts = opts.reject{|k,v| EXTRA_OPTS.include? k }
|
620
|
-
Timeout.timeout(opts[:operation_timeout]) do
|
620
|
+
::Timeout.timeout(opts[:operation_timeout]) do
|
621
621
|
session = Thread.current[:ssh_simple_sessions][host.hash] \
|
622
622
|
= Thread.current[:ssh_simple_sessions][host.hash] \
|
623
623
|
|| Net::SSH.start(*[host, opts[:user], net_ssh_opts])
|
@@ -627,7 +627,7 @@ module Net
|
|
627
627
|
opts[:password].gsub!(/./,'*') if opts.include? :password
|
628
628
|
@result[:exception] = e
|
629
629
|
@result[:success] = false
|
630
|
-
@result[:timed_out] = true if e.is_a? Timeout::Error
|
630
|
+
@result[:timed_out] = true if e.is_a? ::Timeout::Error
|
631
631
|
@result[:finish_at] = Time.new
|
632
632
|
raise Net::SSH::Simple::Error, [e, @result]
|
633
633
|
end
|
@@ -636,7 +636,7 @@ module Net
|
|
636
636
|
def wait_for_channel(session, channel, result, opts)
|
637
637
|
session.loop(1) do
|
638
638
|
if opts[:timeout] < Time.now - result[:last_event_at]
|
639
|
-
raise Timeout::Error, 'idle timeout'
|
639
|
+
raise ::Timeout::Error, 'idle timeout'
|
640
640
|
end
|
641
641
|
|
642
642
|
# Send keep-alive probes at the configured interval.
|
data/net-ssh-simple.gemspec
CHANGED
@@ -13,7 +13,7 @@ Gem::Specification.new do |s|
|
|
13
13
|
|
14
14
|
s.required_ruby_version = '>= 1.9.2'
|
15
15
|
|
16
|
-
s.add_dependency "net-ssh", "
|
16
|
+
s.add_dependency "net-ssh", "= 2.9.2"
|
17
17
|
s.add_dependency "net-scp", "~> 1.2.1"
|
18
18
|
s.add_dependency "blockenspiel", "~> 0.4.3"
|
19
19
|
s.add_dependency "hashie", ">= 1.1.0"
|