oxidized 0.12.1 → 0.12.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.
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ # 0.12.2
2
+ - BUGFIX: more MRV model fixes (by @natm)
3
+
1
4
  # 0.12.1
2
5
  - BUGFIX: set term to vty100
3
6
  - BUGFIX: MRV model fixes (by @natm)
data/Rakefile CHANGED
@@ -26,7 +26,7 @@ end
26
26
 
27
27
  desc 'Remove gems'
28
28
  task :clean do
29
- FileUtils.rm_rf 'gems'
29
+ FileUtils.rm_rf 'pkg'
30
30
  end
31
31
 
32
32
  desc 'Tag the release'
@@ -36,7 +36,7 @@ end
36
36
 
37
37
  desc 'Push to rubygems'
38
38
  task :push => :tag do
39
- system "gem push gems/#{file}"
39
+ system "gem push pkg/#{file}"
40
40
  end
41
41
 
42
42
  task default: :test
@@ -2,36 +2,36 @@ class MasterOS < Oxidized::Model
2
2
 
3
3
  # MRV MasterOS model #
4
4
 
5
- comment '!'
5
+ comment '!'
6
6
 
7
7
  cmd :secret do |cfg|
8
8
  cfg.gsub! /^(snmp-server community).*/, '\\1 <configuration removed>'
9
9
  cfg.gsub! /username (\S+) password encrypted (\S+) class (\S+).*/, '<secret hidden>'
10
- cfg
11
- end
10
+ cfg
11
+ end
12
12
 
13
13
  cmd :all do |cfg|
14
14
  cfg.each_line.to_a[1..-2].join
15
- cfg.gsub! /^(! Configuration ).*/, '!'
16
- end
15
+ cfg.gsub /^(! Configuration ).*/, '!'
16
+ end
17
17
 
18
18
  cmd 'show inventory' do |cfg|
19
19
  cfg = cfg.each_line.to_a[0..-2].join
20
- comment cfg
21
- end
20
+ comment cfg
21
+ end
22
22
 
23
23
  cmd 'show plugins' do |cfg|
24
- comment cfg
25
- end
24
+ comment cfg
25
+ end
26
26
 
27
27
  cmd 'show hw-config' do |cfg|
28
- comment cfg
29
- end
28
+ comment cfg
29
+ end
30
30
 
31
31
  cmd 'show running-config' do |cfg|
32
32
  cfg = cfg.each_line.to_a[3..-1].join
33
- cfg
34
- end
33
+ cfg
34
+ end
35
35
 
36
36
  cfg :telnet, :ssh do
37
37
  post_login 'no pager'
@@ -39,9 +39,9 @@ comment '!'
39
39
  post_login do
40
40
  send "enable\n"
41
41
  send vars(:enable) + "\n"
42
- end
43
- end
42
+ end
43
+ end
44
44
  pre_logout 'exit'
45
- end
45
+ end
46
46
 
47
47
  end
@@ -1,3 +1,3 @@
1
1
  module Oxidized
2
- VERSION = '0.12.1'
2
+ VERSION = '0.12.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oxidized
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.1
4
+ version: 0.12.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: