vagrant-scriptrock 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/vagrant-scriptrock/config.rb +6 -5
- data/lib/vagrant-scriptrock/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: d4b3e3b3276f71d8b3a43c080cb57434f2e03149
|
|
4
|
+
data.tar.gz: 0419a298b268c1dce8b5ebefcde8414741499681
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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/
|
|
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
|
-
|
|
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(
|
|
33
|
-
puts "ScriptRock yml file '#{
|
|
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(
|
|
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"]
|
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.
|
|
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-
|
|
11
|
+
date: 2015-02-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|