commutateurs 0.2.0 → 0.2.2

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: 9982f7528257ee82c8bdca4028c58498fbfc6661
4
- data.tar.gz: 783e07ed4906193389d9e443c7dc50e596b9e91a
3
+ metadata.gz: 560a064d4c5f20219aad145ca5e966bcd993ee84
4
+ data.tar.gz: d66d609de1140ae86201ace3fe6718698e8b7630
5
5
  SHA512:
6
- metadata.gz: 4abc114671e554c585897021da6a068ca14a1a32e6c722db8ff61d7fe184784a91d4f876f1672275925351447551cf09b1fdd089bc07fcde76d792100abc9b9d
7
- data.tar.gz: d7b21d4f86147da6fe36078b2de87d4ef5adbe92524cf335e1fd7304acef73af503952a8a5ab80200a6b85deb1dc188eb25aba08abf47e5c2d57d62300a6b58c
6
+ metadata.gz: be5e15616801eeceeab2864ca7da99af374307e006b3a86b414589ee56f66f2960151ec2944f8a3e7a8cb5a7a480b9eb9a84864d22e3f249f00f4e1ebb7a3157
7
+ data.tar.gz: 6511a1eb35eabb0bbafca5976b1ce342fb0028c9a96dcd1724e25914967c032924ac5921f2d1d14eb139d372f3dc70f5367c649b1f4ee09ffecfc56bf758e729
data/lib/commutateurs.rb CHANGED
@@ -13,3 +13,4 @@ require_relative './commutateurs/h3c'
13
13
  require_relative './commutateurs/hp'
14
14
  require_relative './commutateurs/juniper'
15
15
  require_relative './commutateurs/brocade'
16
+ require_relative './commutateurs/ironport'
@@ -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.0
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