net-ssh-simple 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.rdoc +7 -0
- data/lib/net/ssh/simple/version.rb +1 -1
- metadata +4 -4
data/README.rdoc
CHANGED
@@ -19,6 +19,8 @@ Net::SSH::Simple is a simple wrapper around Net::SSH and Net::SCP.
|
|
19
19
|
|
20
20
|
=== Block Syntax (synchronous)
|
21
21
|
|
22
|
+
require 'net/ssh/simple'
|
23
|
+
|
22
24
|
Net::SSH::Simple.sync do
|
23
25
|
r = ssh 'example1.com', 'echo "Hello World."'
|
24
26
|
puts r.stdout #=> "Hello World."
|
@@ -29,6 +31,8 @@ Net::SSH::Simple is a simple wrapper around Net::SSH and Net::SCP.
|
|
29
31
|
|
30
32
|
=== Block Syntax (asynchronous)
|
31
33
|
|
34
|
+
require 'net/ssh/simple'
|
35
|
+
|
32
36
|
a = Net::SSH::Simple.async do
|
33
37
|
ssh 'example1.com', 'echo "Hello World."'
|
34
38
|
scp_ul 'example2.com', '/tmp/local_foo', '/tmp/remote_bar'
|
@@ -43,6 +47,9 @@ Net::SSH::Simple is a simple wrapper around Net::SSH and Net::SCP.
|
|
43
47
|
b.value # Wait for thread B to finish and capture result
|
44
48
|
|
45
49
|
=== Using an instance
|
50
|
+
|
51
|
+
require 'net/ssh/simple'
|
52
|
+
|
46
53
|
s = Net::SSH::Simple.new
|
47
54
|
s.ssh 'example1.com', 'echo "Hello World."'
|
48
55
|
s.scp_ul 'example2.com', '/tmp/local_foo', '/tmp/remote_bar'
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 1
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 1.0.
|
8
|
+
- 1
|
9
|
+
version: 1.0.1
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Moe
|
@@ -149,7 +149,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
149
149
|
requirements:
|
150
150
|
- - ">="
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
hash:
|
152
|
+
hash: 4169602504577549835
|
153
153
|
segments:
|
154
154
|
- 0
|
155
155
|
version: "0"
|
@@ -158,7 +158,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
158
158
|
requirements:
|
159
159
|
- - ">="
|
160
160
|
- !ruby/object:Gem::Version
|
161
|
-
hash:
|
161
|
+
hash: 4169602504577549835
|
162
162
|
segments:
|
163
163
|
- 0
|
164
164
|
version: "0"
|