onceover 3.0.2 → 3.0.3

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/lib/onceover/test.rb CHANGED
@@ -58,6 +58,7 @@ class Onceover
58
58
  @classes.flatten!
59
59
  elsif test_this.is_a?(Hash)
60
60
  # If it is a hash we need to get creative
61
+ raise "exclude must contain a value when using include/exclude syntax in onceover config file" unless test_this['exclude']
61
62
 
62
63
  # Get all of the included classes and add them
63
64
  if Onceover::Group.find(test_this['include'])
@@ -94,7 +95,7 @@ class Onceover
94
95
  if classes.count > 1
95
96
  class_msg = "#{classes.count}_classes"
96
97
  else
97
- class_msg = classes[0].name
98
+ class_msg = classes[0].name.gsub(/::/,'__')
98
99
  end
99
100
 
100
101
  if nodes.count > 1
@@ -150,8 +150,8 @@ class Onceover
150
150
  # R10K::Settings.global_settings.evaluate(with_overrides)
151
151
  # R10K::Action::Deploy::Environment
152
152
  Dir.chdir("#{repo.tempdir}/#{repo.environmentpath}/production") do
153
- logger.debug "Runing r10k puppetfile install --verbose from #{repo.tempdir}/#{repo.environmentpath}/production"
154
- system("r10k puppetfile install --verbose --color")
153
+ logger.debug "Runing r10k puppetfile install --verbose --color --puppetfile #{repo.puppetfile} from #{repo.tempdir}/#{repo.environmentpath}/production"
154
+ system("r10k puppetfile install --verbose --color --puppetfile #{repo.puppetfile}")
155
155
  end
156
156
  else
157
157
  raise "#{repo.tempdir} is not a directory"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onceover
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.2
4
+ version: 3.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dylan Ratcliffe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-30 00:00:00.000000000 Z
11
+ date: 2016-05-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -292,6 +292,8 @@ files:
292
292
  - factsets/Ubuntu-14.04-64.json
293
293
  - factsets/Windows_Server-2008r2-64.json
294
294
  - factsets/Windows_Server-2012r2-64.json
295
+ - factsets/solaris-10_u9-sparc-64.json
296
+ - factsets/solaris-11.2-sparc-64.json
295
297
  - lib/onceover/beaker.rb
296
298
  - lib/onceover/beaker/spec_helper.rb
297
299
  - lib/onceover/class.rb