aubergine 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/courgette/device.rb +2 -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: e7f81ce7a76d69481c3424564bd61717ecbc41b0
|
4
|
+
data.tar.gz: 1cc72206fb35aa7e6b1dc5e1ff0d88233fedd3ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba8f42afb3169926c3c151196f7e41ca8301779aed13f4f22aab035230267b7751379b7e5dc3c894ef23bbed3c8c7005a12347abd7a60b7f2c3ec08e60e566d5
|
7
|
+
data.tar.gz: 4bdd38f39712c248632e0358b71b206137b56e143933c7374d4fb2de3a8cbf57ecc6ef4b809da8f6ce77db4daace58e719707a1b6bd93e90d1c88fc587b4338f
|
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
21
|
def fetch
|
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, false)
|
25
25
|
device.connect
|
26
26
|
device.enable
|
27
27
|
|