onceover 3.2.1 → 3.2.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: a1c202c9c575a990e289391c96437c4be6518189
4
- data.tar.gz: b979e35d426517f2f0f2f10dc692f92b57b0c6af
3
+ metadata.gz: 5ff59bf1f83e427cce7214bce17bb465c91d7f44
4
+ data.tar.gz: 2e297d36639571c1f41b04c8c76a7c2c664455bc
5
5
  SHA512:
6
- metadata.gz: 3141841bf037bdc8a8133c16d778fa21fa4c2110efd51358baa7f2f44bec316b0491213280599851fbc4e468181d218f4ecba9d35092d9601c3b43138c36b92e
7
- data.tar.gz: 5d73734380fb8eb6a6d359655b4cace7cb6f2385c6e32c139ae43a9f07b2772979dcb040ecb8e1f24d5984a2c1b8c1b925dd3c23572c02ce9d9a27a6974aaeb6
6
+ metadata.gz: 6a0f437ece3e1d045d8650e49e2d0566ea4146f6249297667b9af9fd4f554da230a6e14348a898bf502046986d26d3c45d4f0c3e4b11828951fc38b69756064e
7
+ data.tar.gz: 106802f9adc91a447be750339e51540cb44a65d63ac17c23f2041c80f857e46151c26a0ebb1de14d70212929dca20a837405b978067e13bd88a1105a4090babf
data/.gitignore CHANGED
@@ -1,2 +1,3 @@
1
1
  .DS_Store
2
- *.gem
2
+ *.gem
3
+ Gemfile.lock
@@ -340,6 +340,10 @@ class Onceover
340
340
  hiera_config_file
341
341
  end
342
342
 
343
+ def hiera_config_file_relative_path
344
+ Pathname.new(hiera_config_file).relative_path_from(Pathname.new(root)).to_s
345
+ end
346
+
343
347
  def hiera_config
344
348
  begin
345
349
  YAML.load_file(hiera_config_file)
data/onceover.gemspec CHANGED
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "onceover"
6
- s.version = "3.2.1"
6
+ s.version = "3.2.2"
7
7
  s.authors = ["Dylan Ratcliffe"]
8
8
  s.email = ["dylan.ratcliffe@puppet.com"]
9
9
  s.homepage = "https://github.com/dylanratcliffe/onceover"
@@ -11,7 +11,7 @@ RSpec.configure do |c|
11
11
 
12
12
  c.environmentpath = '<%= environmentpath %>'
13
13
  c.module_path = '<%= modulepath %>'
14
- c.hiera_config = '<%= environmentpath %>/production/hiera.yaml'
14
+ c.hiera_config = '<%= environmentpath %>/production/<%= repo.hiera_config_file_relative_path %>'
15
15
  c.manifest = '<%= repo.temp_manifest %>'
16
16
  ENV['STRICT_VARIABLES'] = '<%= self.strict_variables %>'
17
17
  <% if ENV['SHOW_PUPPET_OUTPUT'] and ENV['SHOW_PUPPET_OUTPUT'].downcase == 'true' %>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onceover
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.1
4
+ version: 3.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dylan Ratcliffe