commutateurs 0.0.9 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/commutateurs/device.rb +28 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 86dacdae854b57781a9797d040ca9acd5da6bb81
4
- data.tar.gz: 82db693aff19b4f9a81a5af88f608ad9ca39137b
3
+ metadata.gz: a33888431fb187ca05da50b4371075137322b9d6
4
+ data.tar.gz: 83f3eaefaab6487edc7e7792f94cb17e6efff3e4
5
5
  SHA512:
6
- metadata.gz: ecd0051eb97b4aca2b282854f1ed40de1ff923c2a9cd3d0e0e9f98b76bb37d44848f87d6eb39114b6bf62c8976897aaabef34a969d0487706d531f3073524044
7
- data.tar.gz: dc92da34dc0417594caa96dee60f1e426b6b15889d51a05d028e3498b3d6a769f7edaa5616a5ffb373a759bfe076bc160122770223d58c8d06e0944524ad4ce4
6
+ metadata.gz: 976ae5a09146f34468eadeff927283d00de83d36508418cccb618341fdf29b87827097ae60546f9272e4b46c94f0ce68527aa1872c6b7702f43d2cc93628c0a7
7
+ data.tar.gz: 769651318e2c17af33a9454a3083be2ee50c34795ee16f22b353bd7ffb5dff882c11273c8003bc8eba19d0fdfa4c80b35336ddcbc80d8932787e076c194b3b0c
@@ -23,6 +23,7 @@ module Commutateurs
23
23
  end
24
24
  end
25
25
 
26
+ # Work in progress
26
27
  class HP < Base
27
28
  def initialize(host, credentials, verbose = false)
28
29
  super
@@ -139,6 +140,33 @@ module Commutateurs
139
140
  end
140
141
 
141
142
  def configuration
143
+ execute('get config')
144
+ end
145
+
146
+ def save
147
+ end
148
+
149
+ def disconnect
150
+ @transport.send 'exit'
151
+ @transport.close
152
+ end
153
+ end
154
+
155
+ class Fortigate < Base
156
+ def initialize(host, credentials, verbose = false)
157
+ super
158
+ @transport.default_prompt = / # $/
159
+ end
160
+
161
+ def enable
162
+ end
163
+
164
+ def connect
165
+ @transport.connect
166
+ end
167
+
168
+ def configuration
169
+ execute('show')
142
170
  end
143
171
 
144
172
  def save
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.0.9
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Guillaume Rose