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 +4 -4
- data/lib/hiera/backend/mock_backend.rb +5 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0e30137677144b9c9be498f6e4c7e14c75fe4f83
|
4
|
+
data.tar.gz: 9173551a1910cca74cdd627d0b877454f888b4c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 =
|
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
|