erb-hiera 0.5.0.pre.rc0 → 0.5.0.pre.rc1

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
- SHA1:
3
- metadata.gz: 2ca8894f2efe1edb0039fbacff8c3295e8105e89
4
- data.tar.gz: a0003dd9922d0c13660882553231e09810592b6d
2
+ SHA256:
3
+ metadata.gz: cbf140594d4148a8e4c66719c31a1d0219e0d953f5445abfaca68f68e84d14b3
4
+ data.tar.gz: 7c553308ca1c5ccfcfc7dbcef8e14fd2be5a4f12f9c1f32b821fd9d117e9e632
5
5
  SHA512:
6
- metadata.gz: 7475d8b195b11559609c2f9e665459516bc7b458dc2de6015ea22d4fc4c475669fc94efc8c83c64c19a2ef1d2be4c843afd5c5242e72372faf66854c7744349c
7
- data.tar.gz: ff648a3b56a1437e65654ca456ad8982f974d65fefb0831545eff259f7354ed7054c2ab4dcae056e4d26fec556edc52ea87e5177a0b4a45dc74830507818e256
6
+ metadata.gz: 20442d10c65d0a7b21d0329c1137c016e6d265c3bfd3ad9a75e9ab72ed314444084194b2f48784382da9cfbce86ecd79bc8eab6ead0da09ab51f84c508aaab2e
7
+ data.tar.gz: 1a879f65d3036a5f35341d52b3457e0c7411fbca34ed4ca83bbf93c47719383f2cdc190e2981b3d8815e3f5dc6e0fd9e9b0a9741ba4fe3ba5cb83a20a52b0afc
@@ -28,7 +28,7 @@ module ErbHiera
28
28
  exit 1
29
29
  end
30
30
 
31
- puts "# #{key}: #{value}" if ErbHiera.options[:verbose]
31
+ puts "# query/result: '#{key}' / '#{value}'" if ErbHiera.options[:verbose]
32
32
  value
33
33
  end
34
34
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  module ErbHiera
4
- VERSION = "0.5.0-rc0"
4
+ VERSION = "0.5.0-rc1"
5
5
  end
data/lib/erb-hiera.rb CHANGED
@@ -20,6 +20,7 @@ module ErbHiera
20
20
 
21
21
  def self.run
22
22
  @options = CLI.parse
23
+ header unless mappings.empty?
23
24
  mappings.each do |mapping|
24
25
  ErbHiera.scope = scope_from_cli || mapping["scope"]
25
26
  input = options[:input] || mapping["dir"]["input"]
@@ -51,6 +52,12 @@ module ErbHiera
51
52
 
52
53
  private
53
54
 
55
+ def self.header
56
+ puts "#"
57
+ puts "# erb-hiera"
58
+ puts "#"
59
+ end
60
+
54
61
  def self.scope_from_cli
55
62
  JSON.load(options[:scope]) if options[:scope]
56
63
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: erb-hiera
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0.pre.rc0
4
+ version: 0.5.0.pre.rc1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rob Wilson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-11 00:00:00.000000000 Z
11
+ date: 2018-05-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hiera
@@ -141,7 +141,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
141
141
  version: 1.3.1
142
142
  requirements: []
143
143
  rubyforge_project:
144
- rubygems_version: 2.6.14
144
+ rubygems_version: 2.7.6
145
145
  signing_key:
146
146
  specification_version: 4
147
147
  summary: ERB Hiera Document Generator