aubergine 0.0.5 → 0.0.6

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: e7f81ce7a76d69481c3424564bd61717ecbc41b0
4
- data.tar.gz: 1cc72206fb35aa7e6b1dc5e1ff0d88233fedd3ce
3
+ metadata.gz: b71615e6febfb431ba5dade675f228246bf019c0
4
+ data.tar.gz: 07ae43b9c3735d5f00450f5429e8454eb479e5af
5
5
  SHA512:
6
- metadata.gz: ba8f42afb3169926c3c151196f7e41ca8301779aed13f4f22aab035230267b7751379b7e5dc3c894ef23bbed3c8c7005a12347abd7a60b7f2c3ec08e60e566d5
7
- data.tar.gz: 4bdd38f39712c248632e0358b71b206137b56e143933c7374d4fb2de3a8cbf57ecc6ef4b809da8f6ce77db4daace58e719707a1b6bd93e90d1c88fc587b4338f
6
+ metadata.gz: 12a39c268d2195015d306978a81b5c9890474cef9ec672e0b9367194a2c9c08395028dbd214c3bc2e6345464d3e91a2426243fe0406e33e3cf2a6aa1f177b022
7
+ data.tar.gz: fd5942d4ba9c8de2a6a2ab9679474f7373d69dbfaf47dcbed25c0aaef0ea660a6fd361475116f0f5108b55120ba3bb6f626d7917a4aa07a490812de57cf1a612
@@ -23,6 +23,10 @@ module Aubergine
23
23
  end
24
24
 
25
25
  repository = Git.open(Path.repository)
26
+
27
+ repository.config('user.name', 'Aubergine')
28
+ repository.config('user.email', 'aubergine@company.com')
29
+
26
30
  shortname = path.short
27
31
  if repository.diff('HEAD', shortname).entries.length > 0
28
32
  repository.add(shortname)
@@ -15,13 +15,13 @@ module Courgette
15
15
  end
16
16
 
17
17
  def self.build(hash)
18
- new(hash[:ip], hash[:vendor], hash[:login], hash[:password])
18
+ new(hash['ip'], hash['vendor'], hash['login'], hash['password'])
19
19
  end
20
20
 
21
- def fetch
21
+ def fetch(debug = false)
22
22
  credentials = Commutateurs::Credentials.new(@login, @password, @password)
23
23
 
24
- device = VENDOR_CLASSES[@vendor].new(@ip, credentials, false)
24
+ device = VENDOR_CLASSES[vendor].new(ip, credentials, debug)
25
25
  device.connect
26
26
  device.enable
27
27
 
@@ -21,8 +21,6 @@ module Courgette
21
21
  logger.info "#{device.ip} credentials are incorrect"
22
22
  rescue Errno::ECONNREFUSED
23
23
  logger.info "#{device.ip} is unreachable (connection refused)"
24
- rescue
25
- logger.info "#{device.ip} fatal error"
26
24
  end
27
25
  end
28
26
  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.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Guillaume Rose