vagrant-berkshelf 3.0.0.rc1 → 3.0.0.rc2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/berkshelf/vagrant/berks_config.rb +2 -12
- data/lib/berkshelf/vagrant/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fd9966899189fb75274665df559a5d693279061f
|
4
|
+
data.tar.gz: ecd76c0c78750c15facc0bb1eb1c68d377103e76
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 84c5f59c692f538ebbbec4f7aa51683ff416cf44d8fdf2f492ffb8a6a5e609e2943f069f6b98872cb6ca216806d215ac5805a84bd74194ff717f1c8f4a005a0e
|
7
|
+
data.tar.gz: ec95dfac8eb37f207e6cff47ccfd9992fdf8350a138b2d725673df819de55b05124f330864746ca5d6b8a420d7f3b02defbde0c74ae3dfcd4a4643efce7ee60e
|
@@ -19,23 +19,13 @@ module Berkshelf::Vagrant
|
|
19
19
|
File.expand_path(path)
|
20
20
|
end
|
21
21
|
|
22
|
-
# @return [String, nil]
|
23
|
-
# the contents of the file
|
24
|
-
def file
|
25
|
-
File.read(path) if File.exists?(path)
|
26
|
-
end
|
27
|
-
|
28
|
-
def from_json(path)
|
29
|
-
JSON.parse(File.read(path))
|
30
|
-
end
|
31
|
-
|
32
22
|
# Instantiate and return or just return the currently instantiated Berkshelf
|
33
23
|
# configuration
|
34
24
|
#
|
35
25
|
# @return [Config]
|
36
26
|
def instance
|
37
|
-
@instance ||= if
|
38
|
-
|
27
|
+
@instance ||= if File.exists?(path) && File.readable?(path)
|
28
|
+
JSON.parse(File.read(path))
|
39
29
|
else
|
40
30
|
new
|
41
31
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-berkshelf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.0.
|
4
|
+
version: 3.0.0.rc2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jamie Winsor
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-07-
|
12
|
+
date: 2014-07-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: buff-shell_out
|