aubergine 0.0.8 → 0.1.0

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: 6cbe35ecf75c4bd113f990c19f521e19b32ab145
4
- data.tar.gz: 314d3b235249c9bddcebd1346b38d7a4953bcc54
3
+ metadata.gz: cce6f4ea056da4292c48d05c33c1ce72b73f2506
4
+ data.tar.gz: 2099ea7142821ee1b3fb4706d2ca3e3c8f471bac
5
5
  SHA512:
6
- metadata.gz: 695387d367cab7b7d66021e90c2b187baa8b5869c44ca7c5677accf6ef5b8f65b7c7b1300404cda442a0f59812b615c89bc08bfcb4a053609200ab2af9e45c37
7
- data.tar.gz: 342aeb39548602c9bbb3cb4a9554fe7db11d2acbdcdaa6e90782591313ee5fb41d81ef5380cd65bca053e826008fb1e71bbbc3b8b427106fe6398fa37f46081f
6
+ metadata.gz: d66a4ba1454464abdaab3cdda4d68bbbaa1817db30f561cb466999df4cc27a3e86e510a18df96065f096ca853d7255176c47ce6f6aa03aa57eacd169ff0735ce
7
+ data.tar.gz: 7a707223d1451d9eec8c2da53a06a4edd7caa9d4b4d7f59e4bb4d8b84ca1c9d99767500b57122866a715e06bb3fb29e9b896020727cec6f733564a675b5b7700
@@ -2,7 +2,9 @@ module Courgette
2
2
  class Device
3
3
  VENDOR_CLASSES = {
4
4
  'hp' => Commutateurs::HP,
5
- 'cisco' => Commutateurs::Cisco
5
+ 'cisco' => Commutateurs::Cisco,
6
+ 'juniper' => Commutateurs::Juniper,
7
+ 'fortigate' => Commutateurs::Fortigate
6
8
  }
7
9
 
8
10
  attr_reader :ip, :vendor
@@ -26,6 +26,8 @@ module Courgette
26
26
  logger.info "#{device.ip} credentials are incorrect"
27
27
  rescue Errno::ECONNREFUSED
28
28
  logger.info "#{device.ip} is unreachable (connection refused)"
29
+ rescue Net::SSH::Exception => e
30
+ logger.info "#{device.ip} ssh error (#{e.message})"
29
31
  end
30
32
  end
31
33
  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.8
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Guillaume Rose
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '>='
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: 0.0.1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '>='
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: 0.0.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: git
29
29
  requirement: !ruby/object:Gem::Requirement