terragov 0.3.1 → 0.3.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/terragov/cli.rb +1 -1
- data/lib/terragov/terraform.rb +4 -0
- data/lib/terragov/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 82794ef0eedbf8bd334a1503115a8cac1fc65db2
|
4
|
+
data.tar.gz: fe6c085b201cb8f97e43422349c6e8c9207a5538
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd42773c34aa60e6fcd07c4fb30c63a7bd47da27f53c71c1d3fc42fb2208a2b954b110c11ce6a0ceea73efd5154a7debe4d074285ee9dc4e45e2d85db79905e4
|
7
|
+
data.tar.gz: 87beca2ca7b948cb54274472d052deefd6efc78a1ed266fec30fd58a9426c46131ffa5777f95d38facbddbe0e31f566101bfd089f40ca9343da7d317ce16d4f2
|
data/lib/terragov/cli.rb
CHANGED
@@ -242,7 +242,7 @@ module Terragov
|
|
242
242
|
abort("Must set command to run: --command") unless command
|
243
243
|
abort("Cannot find deployment file: #{file}") unless File.exist?(file)
|
244
244
|
|
245
|
-
deployment_file = YAML.load_file(file)
|
245
|
+
deployment_file = YAML.load_file(File.expand_path(file))
|
246
246
|
deployment_config = deployment_file[group]
|
247
247
|
|
248
248
|
if deployment_config.nil?
|
data/lib/terragov/terraform.rb
CHANGED
@@ -23,6 +23,8 @@ module Terragov
|
|
23
23
|
exit 1
|
24
24
|
end
|
25
25
|
|
26
|
+
current_dir = Dir.pwd
|
27
|
+
|
26
28
|
Dir.chdir directory
|
27
29
|
init(backend, dryrun, verbose)
|
28
30
|
|
@@ -33,6 +35,8 @@ module Terragov
|
|
33
35
|
full_command = "bash -c 'terraform #{command} #{vars}'"
|
34
36
|
|
35
37
|
run(full_command, dryrun, verbose)
|
38
|
+
|
39
|
+
Dir.chdir current_dir
|
36
40
|
end
|
37
41
|
|
38
42
|
def init(backend_file, dryrun = false, verbose = false)
|
data/lib/terragov/version.rb
CHANGED