aubergine 0.1.7 → 0.1.8

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: 388d030db072626bc9579ca8d02c396d3565b23a
4
- data.tar.gz: cc43c7224d192a3f763448b89651628b69e001a2
3
+ metadata.gz: 60844ff7abd03bc96c6e26bfb9b06b1cfa73ba31
4
+ data.tar.gz: 2ae27972b2aee0a16f9618dc2fcc3318c3eb7baf
5
5
  SHA512:
6
- metadata.gz: 0f36e8c6fd9195638dd76ddd53d09289c333e507ae7dbc5bf871f9a9d87b8d82727e7c9fce34d2b2078789d2e7bcb479e3888ff36ec2fe5857f22880a1fe0419
7
- data.tar.gz: bfa96c89c00451e5f581d0e5c230d072fe79a8208e80a8b8adeb0c3f3acdabe4cbf452db88424244ce783a6d685f8869eb2b8a01993ac9760a87febd9698deee
6
+ metadata.gz: b2638970c9937136aa23210c2eaae1d819d36de51db0cb3f43d9b98ca5f88d53d799a7940a68bc8e1dee2cea0cdc23000c94ff0102c8f10924c65b48e0196adb
7
+ data.tar.gz: f823449cf8c249acc67e57d9982479d172e6692654e4a318001feb4b634ef5be376f77bc93d09e250acdbf23bccb3d26c5d985f76bc34e3da3f0cc0904f8f596
@@ -20,7 +20,7 @@ module Courgette
20
20
 
21
21
  def self.all
22
22
  [
23
- Chain.of(Fetchers::CommutateursFetcher, Processors::DefaultProcessor),
23
+ Chain.of(Fetchers::CommutateursFetcher, Processors::DefaultProcessor, Processors::CiscoProcessor),
24
24
  Chain.of(Fetchers::HpFetcher, Processors::DefaultProcessor)
25
25
  ]
26
26
  end
@@ -0,0 +1,9 @@
1
+ module Courgette
2
+ module Processors
3
+ class CiscoProcessor < Processor
4
+ def process(text)
5
+ text.gsub(/^ntp clock-period \d+$/, "# ntp clock-period <hidden>")
6
+ end
7
+ end
8
+ end
9
+ end
data/lib/courgette.rb CHANGED
@@ -14,6 +14,7 @@ require_relative './courgette/fetchers/commutateurs_fetcher.rb'
14
14
  require_relative './courgette/fetchers/hp_fetcher.rb'
15
15
  require_relative './courgette/processors/processor.rb'
16
16
  require_relative './courgette/processors/default_processor.rb'
17
+ require_relative './courgette/processors/cisco_processor.rb'
17
18
  require_relative './courgette/chain.rb'
18
19
  require_relative './courgette/device.rb'
19
20
  require_relative './courgette/client.rb'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aubergine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Guillaume Rose
@@ -184,6 +184,7 @@ files:
184
184
  - lib/courgette/fetchers/commutateurs_fetcher.rb
185
185
  - lib/courgette/fetchers/fetcher.rb
186
186
  - lib/courgette/processors/default_processor.rb
187
+ - lib/courgette/processors/cisco_processor.rb
187
188
  - lib/courgette/processors/processor.rb
188
189
  - lib/courgette/executor.rb
189
190
  - lib/aubergine.rb