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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 62de20b48013f967082c65d1aedb9f29292e694c
4
- data.tar.gz: 1172289f2a081195c6fbf72d8311954a6c8b238c
3
+ metadata.gz: fd9966899189fb75274665df559a5d693279061f
4
+ data.tar.gz: ecd76c0c78750c15facc0bb1eb1c68d377103e76
5
5
  SHA512:
6
- metadata.gz: edd6b97e93c2a74463c16b1bdca1fce19575f94506d8a690625f233ab5e4e5fb52e4b8c14f904db222ca2a24b14d515e13f15a3f66f66a0a72809cf731eb8b7a
7
- data.tar.gz: 877fdae6ba5e16e5a3b6920af4759b88cd5288d42ecf65d6bf6ba1dae7a4e83fe9bae5fac6594216c8258669245ef740c99bb33557a34838dcf4d57ffeecd72b
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 file
38
- from_json file
27
+ @instance ||= if File.exists?(path) && File.readable?(path)
28
+ JSON.parse(File.read(path))
39
29
  else
40
30
  new
41
31
  end
@@ -1,5 +1,5 @@
1
1
  module Berkshelf
2
2
  module Vagrant
3
- VERSION = "3.0.0.rc1"
3
+ VERSION = "3.0.0.rc2"
4
4
  end
5
5
  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.rc1
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-23 00:00:00.000000000 Z
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