erb-hiera 0.4.1 → 0.4.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: c6b37b78b530b40dc3e59214c57ca00a6a930c7d
4
- data.tar.gz: 8777a3b9aab7312e733c4459b92ee4408f60ed4a
3
+ metadata.gz: cad7d10ee664cf6998134bc530864207bf5af649
4
+ data.tar.gz: cb9f9fd07e9622641ebf124d555da74cba8c53d3
5
5
  SHA512:
6
- metadata.gz: b3b2c87dfb4d8df2e685b55f7b604fb0fc300152e49a7a17e5c45565ab9ae92d47f9c5597457515ac5c634adc17385d46d353824433809cb8a3c427604a66c95
7
- data.tar.gz: 8698430e4093ea4f6bd7d726cea1b92e55f25350b7daaf5a0f4f3fb7e6715fbb5aa040f6f9a49eb6a985757d36c2994b1b4b0b677b3b402874c37221c75f75fc
6
+ metadata.gz: 99fc9a1ee9264237f40c57ae7bbdba4ee52f188a12eb17226d2e75df211f6e7af2bb38771edf2dfd619525d98da7a5acd89d191a095703e68411b5de4c3e3351
7
+ data.tar.gz: d1ba6e4b7626fee5f9812b2d8aa6723ec51fb6aa0cb49d34f3b48105d36d39af0bb357004a15ce994543fc632c7696d32fc9f41fcb884d0081f97b12caf6a0df
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  module ErbHiera
4
- VERSION = "0.4.1"
4
+ VERSION = "0.4.2"
5
5
  end
data/lib/erb-hiera.rb CHANGED
@@ -18,10 +18,10 @@ module ErbHiera
18
18
  def self.run
19
19
  @options = CLI.parse
20
20
 
21
- mappings.each do |config|
22
- ErbHiera.scope = config["scope"]
23
- in_dir = config["dir"]["input"]
24
- out_dir = config["dir"]["output"]
21
+ mappings.each do |mapping|
22
+ ErbHiera.scope = mapping["scope"]
23
+ in_dir = mapping["dir"]["input"]
24
+ out_dir = mapping["dir"]["output"]
25
25
 
26
26
  [:in_dir, :out_dir].each do |dir|
27
27
  raise StandardError, "error: undefined #{dir.to_s.split('_')[0]}put directory" unless binding.local_variable_get(dir)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: erb-hiera
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rob Wilson