vagrant-scriptrock 0.0.5 → 0.0.6

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: 4f4c9bf8163d876c54c15965a74b2d55b2befaee
4
- data.tar.gz: a92d790d341853ddffaf39f16937b1aa2b107802
3
+ metadata.gz: d4b3e3b3276f71d8b3a43c080cb57434f2e03149
4
+ data.tar.gz: 0419a298b268c1dce8b5ebefcde8414741499681
5
5
  SHA512:
6
- metadata.gz: 9c427a2249a88cf2110fc97cceafbc0d3a41d9f55486e434ab078b8276f56b20f8123f7809667fd3ad837f2bb25e78c549a4fab2000f07f48a59be5677e5fdf8
7
- data.tar.gz: 8a60e9ec03e84255a26e4408b88c6d6cab5a515a508a994c881464a9f49e2903bae90924de8c97331c186ee0ac4b7a5024bf72de9435a450c0feb71de1eb7002
6
+ metadata.gz: 5510869b4098730655fd6fe4f063b3eae2fe8c54b8230de35675adc1f898bc7d28feffd599b7f99bcfad77f8be8196a85ccec1173f7aa4f745041e875ce741a1
7
+ data.tar.gz: df0c253b309132cc8dbeffb9e92cdb7c7c20a7f2d36379cc8ed1eb824fa0e8f4921e9d099ba61001197664812ad01599bd51b76e4ce1bced30e60247fe4ec97a
@@ -16,7 +16,7 @@ module VagrantPlugins
16
16
  def initialize
17
17
  @debug = false
18
18
  puts "config initialize" if @debug
19
- @scriptrock_yml_path = "~/.scriptrock/scriptrock.yml"
19
+ @scriptrock_yml_path = "~/.scriptrock/vagrant.yml"
20
20
  @first_hop = UNSET_VALUE
21
21
  @api_key = UNSET_VALUE
22
22
  @secret_key = UNSET_VALUE
@@ -27,12 +27,13 @@ module VagrantPlugins
27
27
 
28
28
  def load_vars_from_yml
29
29
  if unset(@api_key) || unset(@secret_key) || unset(@connect_url)
30
- if unset(@scriptrock_yml_path)
30
+ path = @scriptrock_yml_path
31
+ if unset(path)
31
32
  puts "ScriptRock yml config path un-set, not loading values from yml"
32
- elsif !File.exist?(File.expand_path(@scriptrock_yml_path))
33
- puts "ScriptRock yml file '#{@scriptrock_yml_path}' doesn't exist, not loading values from yml"
33
+ elsif !File.exist?(File.expand_path(path))
34
+ puts "ScriptRock yml file '#{path}' doesn't exist, not loading values from yml"
34
35
  else
35
- yml = YAML.load(File.read(File.expand_path(@scriptrock_yml_path)))
36
+ yml = YAML.load(File.read(File.expand_path(path)))
36
37
  puts yml if @debug
37
38
  if unset(@api_key)
38
39
  @api_key = yml["api_key"]
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module ScriptRock
3
- VERSION = "0.0.5"
3
+ VERSION = "0.0.6"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-scriptrock
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Sheahan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-08 00:00:00.000000000 Z
11
+ date: 2015-02-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler