commutateurs 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/commutateurs.rb +1 -0
- data/lib/commutateurs/brocade.rb +27 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 544da22d7769b00df93d5ab8900e20fedf4c9ba3
|
4
|
+
data.tar.gz: a02bb5a9bb5c2c6bbef4be4e346bc841c4eb0a19
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 98dd507109dc3df90344ed532f880211d004932fc2569c0b9ab73b29fdddaea0ad34770192100a700012da186df675689f08ff480926c0d2d0857eb47cfaf3f1
|
7
|
+
data.tar.gz: 61318cea86794f00b86f0a9e7e11a6cfa4672562710561cfebc6adba2ce5207ed114d903445215881c73b14eb64af2f3256a370911cb993f41dc401755e8bc5e
|
data/lib/commutateurs.rb
CHANGED
@@ -0,0 +1,27 @@
|
|
1
|
+
module Commutateurs
|
2
|
+
class Brocade < Base
|
3
|
+
def initialize(host, credentials, verbose = false)
|
4
|
+
super
|
5
|
+
@transport.default_prompt = /:admin> $/
|
6
|
+
end
|
7
|
+
|
8
|
+
def enable
|
9
|
+
end
|
10
|
+
|
11
|
+
def connect
|
12
|
+
@transport.connect
|
13
|
+
end
|
14
|
+
|
15
|
+
def configuration
|
16
|
+
execute('configshow')
|
17
|
+
end
|
18
|
+
|
19
|
+
def save
|
20
|
+
end
|
21
|
+
|
22
|
+
def disconnect
|
23
|
+
@transport.send 'exit'
|
24
|
+
@transport.close
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: commutateurs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Guillaume Rose
|
@@ -37,6 +37,7 @@ files:
|
|
37
37
|
- lib/commutateurs/h3c.rb
|
38
38
|
- lib/commutateurs/hp.rb
|
39
39
|
- lib/commutateurs/juniper.rb
|
40
|
+
- lib/commutateurs/brocade.rb
|
40
41
|
- lib/commutateurs/ssh.rb
|
41
42
|
- lib/commutateurs.rb
|
42
43
|
homepage: http://www.github.com/guillaumerose/commutateurs
|