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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7b370d90ba03ce0099a9971f81f4fbc7b1b52e73
4
- data.tar.gz: ff3d7bd9b1053b301cf20f670c3eca8038f8a81c
3
+ metadata.gz: 82794ef0eedbf8bd334a1503115a8cac1fc65db2
4
+ data.tar.gz: fe6c085b201cb8f97e43422349c6e8c9207a5538
5
5
  SHA512:
6
- metadata.gz: 76887d22c0ec35ce3274f26b6e120ad6558c7efb7c7a79a652a4582255be95958a4f9ca2143e925c059cc891dc40cc1a7e1f6899040cbb7d998688bf70c80c00
7
- data.tar.gz: '092fb3626be1b16143ed90098939207bfd4d9e293b2251b63033c6990aaae3c6ca42a31c9dad9caefa9e1498541d0f640091f35b1b01dff9bd3cbfd82196c700'
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?
@@ -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)
@@ -1,3 +1,3 @@
1
1
  module Terragov
2
- VERSION = '0.3.1'.freeze
2
+ VERSION = '0.3.1.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: terragov
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Laura Martin