oxidized 0.14.2 → 0.14.3

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: 61ca595b5255672ffc615530ca8913fd9e370181
4
- data.tar.gz: 3c3a7756a3854b1b38882297d44e2d516a5b562b
3
+ metadata.gz: 17df74ebc75870bfaf11cfdc157960c70ad9cc8d
4
+ data.tar.gz: 71b84e576ce86002f55493d916e4f80c76ef82ec
5
5
  SHA512:
6
- metadata.gz: 20b6bac43a2aa14815322182e6a85d960b2a78c1c7b77dac850a9a392fe981acecf93a41336b8ed90262bdeba4001ac62027c8a28a10f0106cd787de5a86360b
7
- data.tar.gz: 63f76ee63596e77e28a9d76991105df5272e73438099793a347f3ca7679362a8189f32fb7a84747a403007685b3fd0c29cb661f846dcf7ab3dd7bb67b45cc45e
6
+ metadata.gz: 6c1b08bb7139195973cc2e98190989aac3469c763dbd53a1ceb92510fa582ccdb6beb261383541ee26e589a68e5e285eb5ab94d305b4d92099f8b22a2b965513
7
+ data.tar.gz: 39e7b8e08e86699a1f5ef2ee24511c00b613fac5e056e685244928b463a759e8d8ee6d265557c8db457b0872f51432b44090c8b75139a0be31c6985bc1e7c7ca
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ # 0.14.3
2
+ - BUGFIX: fix git when using multiple groups without single_repo
3
+
1
4
  # 0.14.2
2
5
  - BUGFIX: git expand path for all groups
3
6
  - BUGFIX: git get_version, teletubbies do it again
@@ -1,5 +1,5 @@
1
1
  class ACOS < Oxidized::Model
2
- # A10 ACOS model for AX and Thunder series
2
+ # A10 ACOS model for AX and Thunder series
3
3
 
4
4
  comment '! '
5
5
 
@@ -16,11 +16,15 @@ class ACOS < Oxidized::Model
16
16
 
17
17
  cmd 'show running-config all-partitions'
18
18
 
19
+ cmd 'show aflex all-partitions' do |cfg|
20
+ comment cfg
21
+ end
22
+
19
23
  cmd 'show aflex all-partitions' do |cfg|
20
24
  @partitions_aflex = cfg.lines.each_with_object({}) do |l,h|
21
25
  h[$1] = [] if l.match /partition: (.+)/
22
26
  # only consider scripts that have passed syntax check
23
- h[h.keys.last] << $1 if l.match /^([\w-]+) +Check/
27
+ h[h.keys.last] << $1 if l.match /^([\w-]+) +Check/
24
28
  end
25
29
  ''
26
30
  end
@@ -52,18 +56,18 @@ class ACOS < Oxidized::Model
52
56
  username /login:/
53
57
  password /^Password:/
54
58
  end
55
-
59
+
56
60
  cfg :telnet, :ssh do
57
61
  # preferred way to handle additional passwords
58
- if vars :enable
59
- post_login do
60
- send "enable\n"
61
- send vars(:enable) + "\n"
62
- end
62
+ post_login do
63
+ pw = vars(:enable)
64
+ pw ||= ""
65
+ send "enable\r\n"
66
+ cmd pw
63
67
  end
64
68
  post_login 'terminal length 0'
65
69
  post_login 'terminal width 0'
66
- pre_logout "exit\nexit\ny"
70
+ pre_logout "exit\nexit\nY\r\n"
67
71
  end
68
72
 
69
73
  end
@@ -164,7 +164,7 @@ class Git < Output
164
164
  if @cfg.single_repo?
165
165
  file = File.join @opt[:group], file
166
166
  else
167
- repo = if repo.is_a?(String)
167
+ repo = if repo.is_a?(::String)
168
168
  File.join File.dirname(repo), @opt[:group] + '.git'
169
169
  else
170
170
  repo[@opt[:group]]
@@ -1,3 +1,3 @@
1
1
  module Oxidized
2
- VERSION = '0.14.2'
2
+ VERSION = '0.14.3'
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.14.2
4
+ version: 0.14.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Saku Ytti
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-05-19 00:00:00.000000000 Z
13
+ date: 2016-05-25 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: asetus