hiera-examiner 0.4.5 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/hiera-examiner.rb +1 -8
  3. metadata +23 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e9a8c60a960d9e59b5c56506494a7cca058eef76
4
- data.tar.gz: 6afc3e7f031d4d00eb885c6f265493f08c2c2d99
3
+ metadata.gz: 2019a2c879df01a07533610d4c19b4b2f264bda7
4
+ data.tar.gz: 7638d0b1e705007a427d1cf0663492ba4f70aa3c
5
5
  SHA512:
6
- metadata.gz: eecb50b9ccb2c9dcc6969344b7d5e68dd689725ba659ff58479155607aecb6a0a938fd2a12033864d8bff8fd1484e132d73a232beb5bb0127b2eb0f3cb2992e4
7
- data.tar.gz: d4b64d28608e1554c8a6f26eff137809e2ad0bdca93a6adbd819b205d863f8957c4b61352da12edb92e4281b304d578112f6e7a213d72bac155741db91e7ccdc
6
+ metadata.gz: 5b67bd327aa08dc2f26b75b42d3e3cd0a2d0c978fe963f8588e2b60908f91fc24a02c15a0d1b27404b0d3ee2efde0b7df103e47f0346bdedf678ad9a05f9a0ba
7
+ data.tar.gz: 47be7b7d35e8e2284ab2382ed7f1300f9902723d5cfd240956c6653726013bc31eba0811bd66f2ba100af3f415e3ab245bc66ab2f910c4f85a3a9adce35dbd8a
@@ -11,8 +11,6 @@ class HieraExaminer
11
11
  end
12
12
 
13
13
  def yamlLookup(key, scope)
14
- # scope = YAML.load("")
15
- # scope = {}
16
14
  hiera = Hiera.new(:config => @conf)
17
15
  value = {val: nil, file: nil}
18
16
  Hiera::Backend.datasourcefiles('yaml', scope, 'yaml') { |source, file|
@@ -24,9 +22,7 @@ class HieraExaminer
24
22
  return value
25
23
  end
26
24
 
27
- def hieraLookup(key, scope)
28
- # scope = YAML.load("")
29
- # scope = {}
25
+ def hieraLookup(key, scope)
30
26
  hiera = Hiera.new(:config => @conf)
31
27
  puts "Looking up '#{key}' in '#{@conf}' with '#{scope}'"
32
28
  return hiera.lookup(key, @conf, scope)
@@ -39,9 +35,6 @@ class HieraExaminer
39
35
 
40
36
  puts "#{key.red}\n#{explainDetail(key, scope, '', true)}"
41
37
  end
42
- # def explain1(key)
43
- # puts "#{key.red}\n#{explainDetail(key, '', true)}"
44
- # end
45
38
 
46
39
  def explainDetail(key, scope, prefix = '', showSource = false, yamlFileParam = '')
47
40
  startExp = /%{hiera\('/
metadata CHANGED
@@ -1,15 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hiera-examiner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.5
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Stortz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-17 00:00:00.000000000 Z
12
- dependencies: []
11
+ date: 2015-12-18 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: colorize
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '0.7'
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 0.7.7
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: '0.7'
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 0.7.7
13
33
  description: A simple hiera gem
14
34
  email: astortz@redstonecontentsolutions.com
15
35
  executables: