aubergine 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/courgette/executor.rb +6 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 74ef61482b0c51a467917cfecfd14823ed74827e
4
- data.tar.gz: 9ce420d3e0aa75f6d086eb2e5352b5b4b2a87dee
3
+ metadata.gz: aae112f7a4ea004671dc60d86a9655778f366a7f
4
+ data.tar.gz: b7be78ed64933d018d49b38af37ae1182e8fffc4
5
5
  SHA512:
6
- metadata.gz: 63b36fde8134c8b3a0296b900a559defdfe3c06cc00519fda022b480386ac5aba0480d805b4c218b31e8074e91a97fcc2d717affeafa9639b8acc38b1cc864e6
7
- data.tar.gz: 569d3f2e400117635cef355c4c3d4a318870b566009d4f053f8a6bb81567baa92bf6f4c39f3ed832455db025abb3e7a9ba8d3063caa4c91e6fa207e3174d2c38
6
+ metadata.gz: 911b9e6e4c0e08ab1e54aff3ee488f959b0666466bcdfe73b192ab7f26a1bb1f84a1b0a3ddc9d27fcc16eea72705df3aa4d585a48a7a37e927360683dd857fcb
7
+ data.tar.gz: a3908f7fa637cca2fa82596ff37434444dbcbd94fac629308583ffc97a805acb3b3f9ef42de7f6e491c9011e372daedf7e8ba98f216e69ffada85251d8ac2f57
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aubergine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Guillaume Rose