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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '06987257a4c260d1b96418960d13dfa4098745d75e175da00abd74b9e79578a2'
4
- data.tar.gz: b160ce915cde5c453b646e7afa0bf5f74c9b62dc134cedd4ce275e1078359cfa
3
+ metadata.gz: ebbc4dbd4906a3a96739eed20a5c1bfa39d7934a62802fc06d23055fc54bb1a9
4
+ data.tar.gz: 345d17157bd83fbc657914873df6e1b6f4df6af1b03ae85c1fcf320ab31824d7
5
5
  SHA512:
6
- metadata.gz: 2f8fdd9a82a62c2e97d78935b95caee26f51a0e1df52acf511d1354bace0a740c1605fad44fdb7b5a089c7796b973236db980194505662ca2862dc8edbb08690
7
- data.tar.gz: 03f6b585277114646e9fffc00e3ee4c562d3f3a8c0ba9185a601d213097114740ab3f4fc1ad7c9c1fe8dc373e4f7152bbb38cd8cf444517b5e5f0c556f999d32
6
+ metadata.gz: 60ef5b80c2d9ced1e2c07fc68033410cb5765eeafac822ce6b7544cfc1723838536b2447165a2d5c30a4685efc242b30dfcff77ce54bd7da4708aee3bc2f0590
7
+ data.tar.gz: 18db0e062e63d602f896cf1c3f3cdd82d7a1da8f4db63dfc58ee8e263d083ab3267d789a529d463473aa91fa52f1ccfe5352b135f96f825baa4d74b28738fda7
checksums.yaml.gz.sig CHANGED
Binary file
data/README.md CHANGED
@@ -111,7 +111,7 @@ example.
111
111
  ---
112
112
 
113
113
  ```sh
114
- gem install kitchen-terraform --version 7.0.0
114
+ gem install kitchen-terraform --version 7.0.1
115
115
  ```
116
116
 
117
117
  ---
@@ -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: 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 !::File.exist? config_client
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.
@@ -71,7 +71,7 @@ module Kitchen
71
71
 
72
72
  # @api private
73
73
  def value
74
- self.value = ::Gem::Version.new "7.0.0" if not @value
74
+ self.value = ::Gem::Version.new "7.0.1" if not @value
75
75
  @value
76
76
  end
77
77
 
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.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-09 00:00:00.000000000 Z
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