hiera-mock 0.1.0 → 0.1.1

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: 343d08822320eb6e5b55527bab8834fa9a18abdd
4
- data.tar.gz: abee4c54cec007c8e2372ca14a40e7004cee8be8
3
+ metadata.gz: 0e30137677144b9c9be498f6e4c7e14c75fe4f83
4
+ data.tar.gz: 9173551a1910cca74cdd627d0b877454f888b4c1
5
5
  SHA512:
6
- metadata.gz: 8fc88b73b9078aed14cf89da6ce781fe70efaa7b88c75b4c37e0aa7d1d198c024eca6b373b81647c5b9ac4db21923127b9cd36697800b60ed07469883443dd8f
7
- data.tar.gz: 54fec93b17203512120c2b4ce8c60a52b677a9335edb8a8f92adf962ab5ab835fbc640f14adf27808d41d4b477e7f46a14c9edc437f4012d2843278a2febff85
6
+ metadata.gz: 317570012b76902508b92b16d7172c47f8ef73778e40b1c6e42b28b18a1a6571b0fd137993181d7d2a5bf7862d25113880cb4c7576891a1d7ba041a701589553
7
+ data.tar.gz: fdcbe2f6186d8581d985552847db80f96df6ea98ab990b5e6c3a4e5afec838927b1ec7064fddc632709747b1f39ce2e3a1265a6a0570f386a3b067f969fbdc37
@@ -8,7 +8,11 @@ class Hiera
8
8
 
9
9
  datafile = Config[:mock][:datafile]
10
10
 
11
- @data = File.exists?(datafile) ? YAML.load(File.read(datafile)) : {}
11
+ @data = if datafile and File.exists?(datafile)
12
+ YAML.load(File.read(datafile))
13
+ else
14
+ {}
15
+ end
12
16
 
13
17
  Hiera.debug("hiera mock initialized")
14
18
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hiera-mock
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jo Vandeginste