commutateurs 0.2.0 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/commutateurs.rb +1 -0
- data/lib/commutateurs/ironport.rb +29 -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: 560a064d4c5f20219aad145ca5e966bcd993ee84
|
4
|
+
data.tar.gz: d66d609de1140ae86201ace3fe6718698e8b7630
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: be5e15616801eeceeab2864ca7da99af374307e006b3a86b414589ee56f66f2960151ec2944f8a3e7a8cb5a7a480b9eb9a84864d22e3f249f00f4e1ebb7a3157
|
7
|
+
data.tar.gz: 6511a1eb35eabb0bbafca5976b1ce342fb0028c9a96dcd1724e25914967c032924ac5921f2d1d14eb139d372f3dc70f5367c649b1f4ee09ffecfc56bf758e729
|
data/lib/commutateurs.rb
CHANGED
@@ -0,0 +1,29 @@
|
|
1
|
+
module Commutateurs
|
2
|
+
class Ironport < Base
|
3
|
+
def initialize(host, credentials, verbose = false)
|
4
|
+
super
|
5
|
+
@transport.default_prompt = /> $/
|
6
|
+
@transport.more = /-Press Any Key For More-/
|
7
|
+
end
|
8
|
+
|
9
|
+
def enable
|
10
|
+
end
|
11
|
+
|
12
|
+
def connect
|
13
|
+
@transport.connect
|
14
|
+
end
|
15
|
+
|
16
|
+
def configuration
|
17
|
+
execute('showconfig')
|
18
|
+
execute('Y')
|
19
|
+
end
|
20
|
+
|
21
|
+
def save
|
22
|
+
end
|
23
|
+
|
24
|
+
def disconnect
|
25
|
+
@transport.send 'exit'
|
26
|
+
@transport.close
|
27
|
+
end
|
28
|
+
end
|
29
|
+
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.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Guillaume Rose
|
@@ -38,6 +38,7 @@ files:
|
|
38
38
|
- lib/commutateurs/hp.rb
|
39
39
|
- lib/commutateurs/juniper.rb
|
40
40
|
- lib/commutateurs/brocade.rb
|
41
|
+
- lib/commutateurs/ironport.rb
|
41
42
|
- lib/commutateurs/ssh.rb
|
42
43
|
- lib/commutateurs.rb
|
43
44
|
homepage: http://www.github.com/guillaumerose/commutateurs
|