remote_marshal 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/remote_marshal.rb +10 -10
- data/lib/remote_marshal/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: 3075cb60bf8f85c1f4e6bda1be5edfc662a32239
|
4
|
+
data.tar.gz: dd5becd7180999d4953e356118457cf0dfad3f65
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3613211a8a5312f1d19b29d4995d6dbc5095dffed75c792146ed3903d19194822a4e4d6fe2e4974fcede80d0578dee187e7ed837ecad827aea400d29dc58881f
|
7
|
+
data.tar.gz: 22a62586eb83c41725de9e0a83964ca8e94abc03afc65d96d85cfc6018fe05760dbb19f36b7bcc9623172f05721a9b69d2c3f2d2ff8404f3b59d07bf7769e7fe
|
data/Gemfile.lock
CHANGED
data/lib/remote_marshal.rb
CHANGED
@@ -32,7 +32,7 @@ class RemoteMarshal
|
|
32
32
|
channel.wait
|
33
33
|
end
|
34
34
|
|
35
|
-
[status
|
35
|
+
[status] + [output, error].map(&:join)
|
36
36
|
end
|
37
37
|
|
38
38
|
%i(upload! download!).each do |name|
|
@@ -48,21 +48,21 @@ class RemoteMarshal
|
|
48
48
|
private
|
49
49
|
|
50
50
|
def call(&block)
|
51
|
-
status, output = mktmpdir
|
51
|
+
status, output, error = mktmpdir
|
52
52
|
|
53
|
-
return [status, output] unless status == 0
|
53
|
+
return [status, output, error] unless status == 0
|
54
54
|
|
55
|
-
dir
|
56
|
-
ret
|
57
|
-
status, output = remove_entry_secure(dir)
|
55
|
+
dir = output.chomp
|
56
|
+
ret = block.(dir)
|
57
|
+
status, output, error = remove_entry_secure(dir)
|
58
58
|
|
59
|
-
return [status, output] unless status == 0
|
59
|
+
return [status, output, error] unless status == 0
|
60
60
|
|
61
|
-
status, output = *ret
|
61
|
+
status, output, error = *ret
|
62
62
|
|
63
|
-
return [status, output] unless status == 0
|
63
|
+
return [status, output, error] unless status == 0
|
64
64
|
|
65
|
-
[status, Marshal.load(output.chomp)]
|
65
|
+
[status, Marshal.load(output.chomp), error]
|
66
66
|
end
|
67
67
|
|
68
68
|
def mktmpdir
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: remote_marshal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- daisuko
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-02-
|
11
|
+
date: 2016-02-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: net-ssh
|