ztk 1.6.29 → 1.6.30
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/ztk/ssh/core.rb +11 -3
- data/lib/ztk/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NWQxOGYzNTBiMmJmZjI0ZTM4YzZlZjRlMGQ0NDMzODJmNmQ0MDBjYQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YWQzMjAzOTZjYWQzY2U4YTgwYmI3ZjY2Mjg1ZmRhMzdkM2JiMTZkMw==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZjQ1MmU3Mzk4ZDVkZjlmMDI3MGQ5MTE5ZmRjNzQ4NjJjZDJmN2E3MzVkZWUw
|
10
|
+
MzcyMmRiNzI5YjZhOTlkMWUxMWM1NDcxMzA0MDNjMTdiYTY5NzgwOWNiODA1
|
11
|
+
MThhNzI0ZDg3YjZhMDE3NmU0YTBiOTQ2OTI4MzE3ZTIxMDVmNmQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NDQ5OWVlNGYzOWI2MmI5NzYyOTY1ZmRkYTk3MTM5MTMwMzljMjA3MjNlYzUx
|
14
|
+
MzBmZWYyNmUwZTk5MWVmNWZjMmFmMjM0NWE5MDFiNjQ2MzFiYWNiMjE5N2Jl
|
15
|
+
NTk5ZWE2OTNjMjBjMGI0OTlkMmYxODdmMDNlZDU4MDY4ZDllOGQ=
|
data/lib/ztk/ssh/core.rb
CHANGED
@@ -24,12 +24,20 @@ module ZTK
|
|
24
24
|
def close
|
25
25
|
config.ui.logger.debug { "close" }
|
26
26
|
|
27
|
-
if (
|
27
|
+
if (!@ssh.nil? && !@ssh.closed?)
|
28
|
+
config.ui.logger.debug { "SSH object is valid and not closed" }
|
29
|
+
|
28
30
|
begin
|
31
|
+
config.ui.logger.debug { "attempting to close" }
|
29
32
|
@ssh.close
|
30
|
-
|
31
|
-
|
33
|
+
config.ui.logger.debug { "closed" }
|
34
|
+
|
35
|
+
rescue Exception => e
|
36
|
+
config.ui.logger.fatal { "EXCEPTION: #{e.inspect}" }
|
32
37
|
end
|
38
|
+
|
39
|
+
else
|
40
|
+
config.ui.logger.debug { "SSH object is NIL!" }
|
33
41
|
end
|
34
42
|
|
35
43
|
@ssh = nil
|
data/lib/ztk/version.rb
CHANGED