aubergine 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/courgette/executor.rb +6 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aae112f7a4ea004671dc60d86a9655778f366a7f
|
4
|
+
data.tar.gz: b7be78ed64933d018d49b38af37ae1182e8fffc4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 911b9e6e4c0e08ab1e54aff3ee488f959b0666466bcdfe73b192ab7f26a1bb1f84a1b0a3ddc9d27fcc16eea72705df3aa4d585a48a7a37e927360683dd857fcb
|
7
|
+
data.tar.gz: a3908f7fa637cca2fa82596ff37434444dbcbd94fac629308583ffc97a805acb3b3f9ef42de7f6e491c9011e372daedf7e8ba98f216e69ffada85251d8ac2f57
|
data/lib/courgette/executor.rb
CHANGED
@@ -15,8 +15,14 @@ module Courgette
|
|
15
15
|
logger.info "#{device.ip} #{status}"
|
16
16
|
rescue Timeout::Error
|
17
17
|
logger.info "#{device.ip} is unreachable (timeout)"
|
18
|
+
rescue Net::SSH::Disconnect
|
19
|
+
logger.info "#{device.ip} is unreachable (disconnect)"
|
18
20
|
rescue Net::SSH::AuthenticationFailed
|
19
21
|
logger.info "#{device.ip} credentials are incorrect"
|
22
|
+
rescue Errno::ECONNREFUSED
|
23
|
+
logger.info "#{device.ip} is unreachable (connection refused)"
|
24
|
+
rescue
|
25
|
+
logger.info "#{device.ip} fatal error"
|
20
26
|
end
|
21
27
|
end
|
22
28
|
end
|