terragov 0.2.5.1 → 0.2.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/terragov/buildpaths.rb +8 -14
- data/lib/terragov/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: 34fec7129f031849a422749f2d0d9a9f54c3c6a4
|
4
|
+
data.tar.gz: f14943b68ac8e627bb12873a43a941ff7c682a41
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf982e8c0e14e751ad7646940b29c2fbf70b5667ee335abf79daf0c17ec3eef9a4fb83acc423685b123d96b86d7c69cdc6b20fae7fc023f02d2e851e3e711ac5
|
7
|
+
data.tar.gz: 539b16c5019e21402f4bf975e048bb1f05dfae3be5dd18d5a84cd6a8ce495e073d52aa931d7208aa4b75986b381a9974c2419963a513b70f832885ba079e19fa
|
data/lib/terragov/buildpaths.rb
CHANGED
@@ -39,19 +39,11 @@ module Terragov
|
|
39
39
|
}
|
40
40
|
end
|
41
41
|
|
42
|
-
def data_validation(path
|
43
|
-
if
|
44
|
-
|
45
|
-
true
|
46
|
-
else
|
47
|
-
abort("Invalid directory or file: #{path}")
|
48
|
-
end
|
42
|
+
def data_validation(path)
|
43
|
+
if File.exist?(path)
|
44
|
+
true
|
49
45
|
else
|
50
|
-
|
51
|
-
true
|
52
|
-
else
|
53
|
-
false
|
54
|
-
end
|
46
|
+
false
|
55
47
|
end
|
56
48
|
end
|
57
49
|
|
@@ -88,9 +80,11 @@ module Terragov
|
|
88
80
|
|
89
81
|
def build_command(options = {})
|
90
82
|
paths = base(options)
|
91
|
-
abort(
|
83
|
+
abort("Error: cannot find main repository (#{paths[:terraform_dir]})") unless data_validation(paths[:terraform_dir])
|
84
|
+
abort("Error: cannot find project (#{paths[:project_dir]}).") unless data_validation(paths[:project_dir])
|
85
|
+
abort("Error: cannot find backend file (#{paths[:backend_file]}).\nDid you specify the right stack?") unless data_validation(paths[:backend_file])
|
92
86
|
var_paths = data_paths(options)
|
93
|
-
abort("
|
87
|
+
abort("Error: cannot find any var files") unless check_var_files(var_paths)
|
94
88
|
|
95
89
|
$full_vars = []
|
96
90
|
data_paths(options).each do |path|
|
data/lib/terragov/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: terragov
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.5.
|
4
|
+
version: 0.2.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Laura Martin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-11-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: commander
|