kitchen-terraform 7.0.0 → 7.0.1
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/README.md +1 -1
- data/lib/kitchen/provisioner/terraform.rb +1 -1
- data/lib/kitchen/terraform/config_attribute/client.rb +2 -6
- data/lib/kitchen/terraform/debug_logger.rb +13 -0
- data/lib/kitchen/terraform/version.rb +1 -1
- data.tar.gz.sig +0 -0
- 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: ebbc4dbd4906a3a96739eed20a5c1bfa39d7934a62802fc06d23055fc54bb1a9
|
4
|
+
data.tar.gz: 345d17157bd83fbc657914873df6e1b6f4df6af1b03ae85c1fcf320ab31824d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 60ef5b80c2d9ced1e2c07fc68033410cb5765eeafac822ce6b7544cfc1723838536b2447165a2d5c30a4685efc242b30dfcff77ce54bd7da4708aee3bc2f0590
|
7
|
+
data.tar.gz: 18db0e062e63d602f896cf1c3f3cdd82d7a1da8f4db63dfc58ee8e263d083ab3267d789a529d463473aa91fa52f1ccfe5352b135f96f825baa4d74b28738fda7
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/README.md
CHANGED
@@ -86,7 +86,7 @@ module Kitchen
|
|
86
86
|
::Kitchen::Terraform::Provisioner::Converge.new(
|
87
87
|
config: driver.send(:config),
|
88
88
|
connection: transport.connection({}),
|
89
|
-
debug_connection: transport.connection(logger: ::Kitchen::Terraform::DebugLogger.new(logger
|
89
|
+
debug_connection: transport.connection(logger: ::Kitchen::Terraform::DebugLogger.new(logger)),
|
90
90
|
logger: logger,
|
91
91
|
version_requirement: version_requirement,
|
92
92
|
workspace_name: workspace_name,
|
@@ -75,13 +75,9 @@ module Kitchen
|
|
75
75
|
def doctor_config_client
|
76
76
|
errors = false
|
77
77
|
|
78
|
-
if !::
|
78
|
+
if !::TTY::Which.exist? config_client
|
79
79
|
errors = true
|
80
|
-
logger.error "client '#{config_client}' does not exist"
|
81
|
-
end
|
82
|
-
if !::File.executable? config_client
|
83
|
-
errors = true
|
84
|
-
logger.error "client '#{config_client}' is not executable"
|
80
|
+
logger.error "client '#{config_client}' is not executable or does not exist"
|
85
81
|
end
|
86
82
|
|
87
83
|
errors
|
@@ -20,6 +20,19 @@ module Kitchen
|
|
20
20
|
module Terraform
|
21
21
|
# This class delegates to a logger but ensures the debug level is the default level used for logging messages.
|
22
22
|
class DebugLogger < ::SimpleDelegator
|
23
|
+
class << self
|
24
|
+
# .new creates a new instance of the class.
|
25
|
+
#
|
26
|
+
# @return [Kitchen::Terraform::DebugLogger]
|
27
|
+
def new(obj)
|
28
|
+
if !obj.kind_of? ::Kitchen::Logger
|
29
|
+
raise ::TypeError, "delegate must be a Kitchen::Logger; recevied #{obj.class}"
|
30
|
+
end
|
31
|
+
|
32
|
+
super
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
23
36
|
# This method overrides the #<< method of the delegate to call #debug.
|
24
37
|
#
|
25
38
|
# @param message [#to_s] the message to be logged.
|
data.tar.gz.sig
CHANGED
Binary file
|
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: 7.0.
|
4
|
+
version: 7.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aaron Lane
|
@@ -62,7 +62,7 @@ cert_chain:
|
|
62
62
|
JH4yGDzVEYaZHaohSDcYuGLK6OQylPu7oM75S+TNLWseDIT8bWgQk6NelVjtQQ2Q
|
63
63
|
XSbgfu863jyey/0qO01cUo3+iTqzl85cWg==
|
64
64
|
-----END CERTIFICATE-----
|
65
|
-
date: 2023-04-
|
65
|
+
date: 2023-04-21 00:00:00.000000000 Z
|
66
66
|
dependencies:
|
67
67
|
- !ruby/object:Gem::Dependency
|
68
68
|
name: guard-rspec
|
metadata.gz.sig
CHANGED
Binary file
|