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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/kitchen/driver/terraform.rb +1 -0
- data/lib/kitchen/terraform/shell_out.rb +12 -14
- data/lib/kitchen/terraform/version.rb +1 -1
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 272bfd39d809ace18838162e11c8488a6ae6623a6c88dc1b177619b41007e95c
|
4
|
+
data.tar.gz: d2509795935a5daccf9ee2be3521f0ac7f72865a8be5f3c430a008dd4623bb83
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4be878740914aa1fe71c61d895747840ada06b414211c65ff89f01aa7a9b9bd5128800fc82285b8aee024704c21f1cb8500002dcc2460624b1cf25a8e3ca222c
|
7
|
+
data.tar.gz: f66253b088954ad0c4a545daa7b7cd24bdffa271cf34b613bb95c73973ff72bedc365abdfacc7be6c0329ba90f8674bf9d442202cf7b97f840b3124e45b66600
|
checksums.yaml.gz.sig
CHANGED
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(
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
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
|
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.
|
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-
|
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
|