jerakia 0.4.4 → 0.4.5

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
2
  SHA1:
3
- metadata.gz: 8e3992783b33d510127ef7fd6312002923e0b7d9
4
- data.tar.gz: 8a86292db886d5d14f3937e6112da0ea6f3fb688
3
+ metadata.gz: c41114e6bd23299a7a2a24837a973638ed1f95d5
4
+ data.tar.gz: baa4ae57eb934247c0e261b1d92d036ac8eb5287
5
5
  SHA512:
6
- metadata.gz: b275a1bdbb27e3c51bfbd2e5c3552c8e9a458136f8ed37fd0dd35a3ad597a0ec9111064d16cd96d6f3e5308dcd998a63c766214bb182c85d4b3cb2a6ddee0812
7
- data.tar.gz: c44c4c3d9d0ab8dc0bb547d3fbdbd6d8e5801ce28f31fc60027418ba1d108622bbfe8924661326a1db46350aff7f697f6519b2c5b761163d36a54c0add1d386f
6
+ metadata.gz: 3398f530150e3a6b1274ff118c6afffee3948aeab02c59bfc3bb90be8f759d12976e6b5da7f9fe8de836c38fcdc1010cb4a80692f8eed2808c6eb5d56a6ed7d5
7
+ data.tar.gz: 592fc7e0890afc275c3bef12171dbb8edee4df2303955de7706812f9b8fc448b8c08877f8a9bce3a83a387672130ff0cdd50e9be16974ea136f31859e45d624a
@@ -27,8 +27,8 @@ class Hiera
27
27
 
28
28
  if key.include?('::')
29
29
  lookup_key = key.split('::')
30
- namespace << lookup_key.shift
31
- key = lookup_key.join('::')
30
+ key = lookup_key.pop
31
+ namespace = lookup_key
32
32
  end
33
33
 
34
34
  Jerakia.log.debug("[hiera] backend invoked for key #{key} using namespace #{namespace}")
data/lib/jerakia/cli.rb CHANGED
@@ -8,7 +8,6 @@ class Jerakia
8
8
  option :config,
9
9
  aliases: :c,
10
10
  type: :string,
11
- default: '/etc/jerakia/jerakia.yaml',
12
11
  desc: 'Configuration file'
13
12
  option :policy,
14
13
  aliases: :p,
@@ -18,6 +17,7 @@ class Jerakia
18
17
  option :namespace,
19
18
  aliases: :n,
20
19
  type: :string,
20
+ default: '',
21
21
  desc: 'Lookup namespace'
22
22
  option :type,
23
23
  aliases: :t,
@@ -4,6 +4,6 @@ class Jerakia
4
4
  #
5
5
  # This should be updated when a new gem is released and it is read from the gemspec file
6
6
  #
7
- VERSION = "0.4.4"
7
+ VERSION = "0.4.5"
8
8
 
9
9
  end
data/lib/jerakia.rb CHANGED
@@ -63,7 +63,6 @@ class Jerakia
63
63
  end
64
64
 
65
65
  def self.crit(msg)
66
- Jerakia.log.error msg
67
66
  fail msg
68
67
  end
69
68
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jerakia
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.4
4
+ version: 0.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Craig Dunn
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-17 00:00:00.000000000 Z
11
+ date: 2015-12-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor