photocopier 1.3.3.pre2 → 1.3.3.pre3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/photocopier/ssh.rb +3 -2
- data/lib/photocopier/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 23cff4f77ede25810036e4974e22fb6ac0a10387
|
4
|
+
data.tar.gz: 8b11372913559d96088d42fb102b145cb9bb091f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b700b1828d1d15dff08ce427a9c4e532b65109f3f99070d6c98d1714995bb1297539bc1cae6733fd5abbbd0de361aa1a316d8f2b941f8613e7bfc9ec5b17eaa7
|
7
|
+
data.tar.gz: 7ee947a1930175493077f8824812e3af9d6af9c484fc74746242dea01fc87d31548ad5922511ae0a8f8c267fe7a144319b3b688ba96634ed97c0125f4d683bd7
|
data/lib/photocopier/ssh.rb
CHANGED
@@ -39,7 +39,8 @@ module Photocopier
|
|
39
39
|
stdout = ""
|
40
40
|
stderr = ""
|
41
41
|
exit_code = nil
|
42
|
-
|
42
|
+
my_session = session
|
43
|
+
my_session.open_channel do |channel|
|
43
44
|
channel.exec(cmd) do |_ch, _success|
|
44
45
|
channel.on_data do |_ch, data|
|
45
46
|
stdout << data
|
@@ -54,7 +55,7 @@ module Photocopier
|
|
54
55
|
|
55
56
|
channel.wait
|
56
57
|
end
|
57
|
-
|
58
|
+
my_session.loop
|
58
59
|
[stdout, stderr, exit_code]
|
59
60
|
end
|
60
61
|
|
data/lib/photocopier/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: photocopier
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.3.
|
4
|
+
version: 1.3.3.pre3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stefano Verna
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date: 2019-06-
|
13
|
+
date: 2019-06-09 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activesupport
|