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 +4 -4
- data/lib/aubergine/server.rb +4 -0
- data/lib/courgette/device.rb +3 -3
- data/lib/courgette/executor.rb +0 -2
- 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: b71615e6febfb431ba5dade675f228246bf019c0
|
4
|
+
data.tar.gz: 07ae43b9c3735d5f00450f5429e8454eb479e5af
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 12a39c268d2195015d306978a81b5c9890474cef9ec672e0b9367194a2c9c08395028dbd214c3bc2e6345464d3e91a2426243fe0406e33e3cf2a6aa1f177b022
|
7
|
+
data.tar.gz: fd5942d4ba9c8de2a6a2ab9679474f7373d69dbfaf47dcbed25c0aaef0ea660a6fd361475116f0f5108b55120ba3bb6f626d7917a4aa07a490812de57cf1a612
|
data/lib/aubergine/server.rb
CHANGED
@@ -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)
|
data/lib/courgette/device.rb
CHANGED
@@ -15,13 +15,13 @@ module Courgette
|
|
15
15
|
end
|
16
16
|
|
17
17
|
def self.build(hash)
|
18
|
-
new(hash[
|
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[
|
24
|
+
device = VENDOR_CLASSES[vendor].new(ip, credentials, debug)
|
25
25
|
device.connect
|
26
26
|
device.enable
|
27
27
|
|
data/lib/courgette/executor.rb
CHANGED