kitchen-terraform 4.2.1 → 4.3.0

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
  SHA256:
3
- metadata.gz: 0a3548a10386332babb1a27f35a4c3277764e2fb917cb9bc62488c38a4c901c6
4
- data.tar.gz: f7c7b35426678cb65eaf1e58249148ad539a45099f97b96184003facdf99e610
3
+ metadata.gz: 272bfd39d809ace18838162e11c8488a6ae6623a6c88dc1b177619b41007e95c
4
+ data.tar.gz: d2509795935a5daccf9ee2be3521f0ac7f72865a8be5f3c430a008dd4623bb83
5
5
  SHA512:
6
- metadata.gz: 8b62daf3e84dc5654d812ce869ce7baebc254b1d76f464cac21c959049ba0171973aa8b17bb8afa5205c04f48a76fd4131978ec1270037a58f0365aadf3ebc0d
7
- data.tar.gz: 82bbc6765290142bf7f766811bbd4fb6f53d6f2f09f0814d54ff3077699e1ac54ce4ff66ce901335cfe9df4c6fa1314a92b908d7d79fa0b6bbb808cd71155898
6
+ metadata.gz: 4be878740914aa1fe71c61d895747840ada06b414211c65ff89f01aa7a9b9bd5128800fc82285b8aee024704c21f1cb8500002dcc2460624b1cf25a8e3ca222c
7
+ data.tar.gz: f66253b088954ad0c4a545daa7b7cd24bdffa271cf34b613bb95c73973ff72bedc365abdfacc7be6c0329ba90f8674bf9d442202cf7b97f840b3124e45b66600
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -397,6 +397,7 @@ class ::Kitchen::Driver::Terraform < ::Kitchen::Driver::Base
397
397
  "#{variable_files_flags}",
398
398
  options: {
399
399
  cwd: config_root_module_directory,
400
+ environment: {"TF_WARN_OUTPUT_ERRORS" => "true"},
400
401
  live_stream: logger,
401
402
  timeout: config_command_timeout,
402
403
  },
@@ -31,6 +31,7 @@ module ::Kitchen::Terraform::ShellOut
31
31
  # command.
32
32
  # @option options [::Integer] :timeout the maximum duration in seconds to run the command.
33
33
  # @param command [::String] the command to run.
34
+ # @option options [::Hash] :environment environment variables to define when running the command.
34
35
  # @param options [::Hash] options which adjust the execution of the command.
35
36
  # @raise [::Kitchen::Terraform::Error] if running the command fails.
36
37
  # @return [::String] the standard output from running the command.
@@ -67,22 +68,19 @@ module ::Kitchen::Terraform::ShellOut
67
68
 
68
69
  # @api private
69
70
  def self.run_shell_out(command:, options:)
70
- yield(
71
- standard_output:
72
- ::Mixlib::ShellOut
73
- .new(
71
+ yield(standard_output: ::Mixlib::ShellOut.new(
74
72
  "terraform #{command}",
75
- options.merge(environment: {"TF_IN_AUTOMATION" => "true", "TF_WARN_OUTPUT_ERRORS" => "1"})
76
- )
77
- .tap do |shell_out|
78
- shell_out
79
- .live_stream
80
- .warn "Running command `#{shell_out.command}` in directory #{shell_out.cwd}"
81
-
73
+ options.merge(
74
+ environment: {"TF_IN_AUTOMATION" => "true", "TF_WARN_OUTPUT_ERRORS" => "1"}.merge(
75
+ options.fetch(:environment) do
76
+ {}
77
+ end
78
+ ),
79
+ )
80
+ ).tap do |shell_out|
81
+ shell_out.live_stream.warn "Running command `#{shell_out.command}` in directory #{shell_out.cwd}"
82
82
  shell_out.run_command
83
83
  shell_out.error!
84
- end
85
- .stdout
86
- )
84
+ end.stdout)
87
85
  end
88
86
  end
@@ -72,7 +72,7 @@ module ::Kitchen::Terraform::Version
72
72
 
73
73
  # @api private
74
74
  def value
75
- self.value = ::Gem::Version.new "4.2.1" if not @value
75
+ self.value = ::Gem::Version.new "4.3.0" if not @value
76
76
  @value
77
77
  end
78
78
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kitchen-terraform
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.1
4
+ version: 4.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Lane
@@ -61,7 +61,7 @@ cert_chain:
61
61
  XAjP/LERlXAwM+NCUycJw7BZMn7L2wIdnq6Le1rL6VJS17CZt2heuRtsF+3g0egR
62
62
  x97GmUumeM67PGeVodlIV65tdXrdlqKlHcE=
63
63
  -----END CERTIFICATE-----
64
- date: 2019-01-19 00:00:00.000000000 Z
64
+ date: 2019-01-21 00:00:00.000000000 Z
65
65
  dependencies:
66
66
  - !ruby/object:Gem::Dependency
67
67
  name: guard
metadata.gz.sig CHANGED
Binary file