evented-ssh 0.0.1 → 0.0.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 64c4bd2cc63e3056e2d7ced16fa107c00645deec
|
4
|
+
data.tar.gz: 1bbe4fb36e3d5427db5c7d9a47aa32936fd8d01e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 166a5327ea54dc8658f7818616030d18c4ce21095ac98981ec90c5a895fac38c4b9ffafc2c109dde7a52c4ddb14d6d2b92b269c0f58d2fa301699ced557bd98f
|
7
|
+
data.tar.gz: 73ec1c03df4fb5d5c157551646783e80d915db5ed83ba6ad5dafe91f1105dfa57c36639b3540df2d1c1d1d67d634cd21a15ca20e40c6febf5f77aa8c527d6169
|
data/lib/evented-ssh.rb
CHANGED
@@ -68,7 +68,7 @@ module ESSH
|
|
68
68
|
end
|
69
69
|
else
|
70
70
|
transport.close
|
71
|
-
raise AuthenticationFailed, "Authentication failed for user #{user}@#{host}"
|
71
|
+
raise ::Net::SSH::AuthenticationFailed, "Authentication failed for user #{user}@#{host}"
|
72
72
|
end
|
73
73
|
rescue => e
|
74
74
|
transport.socket.__send__(:reject, e) if transport
|
@@ -7,6 +7,11 @@ module Net; module SSH; module Connection
|
|
7
7
|
def initialize(connection, *args, &block)
|
8
8
|
original_initialize(connection, *args, &block)
|
9
9
|
@defer = connection.transport.reactor.defer
|
10
|
+
|
11
|
+
# Cleanup channel when it closes
|
12
|
+
@defer.promise.finally {
|
13
|
+
process
|
14
|
+
}
|
10
15
|
end
|
11
16
|
|
12
17
|
attr_reader :defer
|
data/lib/evented-ssh/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: evented-ssh
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stephen von Takach
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-07-
|
11
|
+
date: 2017-07-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: net-ssh
|