hiera-mock 0.1.1 → 0.1.2
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 -5
- 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: 470d3d4642bec2bb54df8dcc04b4faf76997c765
|
4
|
+
data.tar.gz: 32655b1c4268a83b1b07bafd95ef54763effb582
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c74a75994120335c839e2dfe9e529e3efed0cadda6ab467477a75b5a2f486383fcfc04ebac2a57e5610e90b1bd48a16ccb93e2958db077f334c89f15a6e17647
|
7
|
+
data.tar.gz: bd915948fd57e5c6c2e9d3e40cca863399b2f91420e2e301c286b5080ec4d7b59b24bb1436e77f05994ca5fb896d416591d5c0eb285e3394962bb2706f60298b
|
@@ -8,11 +8,11 @@ class Hiera
|
|
8
8
|
|
9
9
|
datafile = Config[:mock][:datafile]
|
10
10
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
11
|
+
if datafile and File.exists?(datafile)
|
12
|
+
@data = YAML.load(File.read(datafile))
|
13
|
+
end
|
14
|
+
|
15
|
+
@data ||= {}
|
16
16
|
|
17
17
|
Hiera.debug("hiera mock initialized")
|
18
18
|
end
|