oxidized 0.16.1 → 0.16.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cd0aa2eb1ed58d49ab6ad1f409aefb87691d0ee6
4
- data.tar.gz: 553607efc37c0e835380030dcd9315702b6f4118
3
+ metadata.gz: 25fe620dbb51b1d8dacb76a070dc15a94701276f
4
+ data.tar.gz: f652f415b1b70df26a440e2afc79f52a911cd113
5
5
  SHA512:
6
- metadata.gz: dca0115c8e4253c639af19413b177288ebd10be9072cecc595fcfd84693ccaeed548dcfc4b402afceab265758714f519bcbcd988b3ce3f106fd2ff429019f714
7
- data.tar.gz: 1be518575f7bb56835e1af80e2f41e262444d4c775b7036ac8d2c40913a97ec4931d6c79ff0ff05394c28a0a1f0fbe3a34a2bbf8820c7b9f6a9436d89db1e5ce
6
+ metadata.gz: 584f5467dc20399b3c81d906e7b8531970d75ae4a04c8d190e999218c78dbfc0b42f31cc3d0913ca10afbadd3f279ff91c702ec2364bf9763c09dceb88ad9e34
7
+ data.tar.gz: 974ed7ba183e5d91b067d993da98568ba708243df949b18a9c8de4913c0500151b8f4b0cae28720e5e21d56a5e578c0e1109c1a8c59cebb473cb08bb926edf97
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 0.16.2
2
+ - BUGFIX: when not using git (by @danilopopeye)
3
+ - BUGFIX: screenos update
4
+
1
5
  # 0.16.1
2
6
  - BUGFIX: unnecessary puts statement removed from git.rb
3
7
 
@@ -20,6 +20,7 @@ class ScreenOS < Oxidized::Model
20
20
  cmd 'get system' do |cfg|
21
21
  cfg.gsub! /^Date\ .*\n/, ''
22
22
  cfg.gsub! /^Up\ .*\n/, ''
23
+ cfg.gsub! /(current bw ).*/, '\\1 <removed>'
23
24
  comment cfg
24
25
  end
25
26
 
data/lib/oxidized/node.rb CHANGED
@@ -22,7 +22,7 @@ module Oxidized
22
22
  @vars = opt[:vars]
23
23
  @stats = Stats.new
24
24
  @retry = 0
25
- @repo = resolve_repo
25
+ @repo = resolve_repo opt
26
26
 
27
27
  # model instance needs to access node instance
28
28
  @model.node = self
@@ -171,7 +171,9 @@ module Oxidized
171
171
  Oxidized.mgr.model[model].new
172
172
  end
173
173
 
174
- def resolve_repo
174
+ def resolve_repo opt
175
+ return unless is_git? opt
176
+
175
177
  remote_repo = Oxidized.config.output.git.repo
176
178
 
177
179
  if remote_repo.is_a?(::String)
@@ -185,5 +187,9 @@ module Oxidized
185
187
  end
186
188
  end
187
189
 
190
+ def is_git? opt
191
+ (opt[:output] || Oxidized.config.output.default) == 'git'
192
+ end
193
+
188
194
  end
189
195
  end
@@ -1,3 +1,3 @@
1
1
  module Oxidized
2
- VERSION = '0.16.1'
2
+ VERSION = '0.16.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.16.1
4
+ version: 0.16.2
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-07-22 00:00:00.000000000 Z
13
+ date: 2016-07-28 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: asetus