kitchen-terraform 5.7.1 → 6.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/README.md +21 -19
- data/lib/kitchen/driver/terraform.rb +1 -1
- data/lib/kitchen/provisioner/terraform.rb +1 -1
- data/lib/kitchen/terraform/breaking.rb +1 -1
- data/lib/kitchen/terraform/command/apply.rb +1 -1
- data/lib/kitchen/terraform/command/destroy.rb +1 -1
- data/lib/kitchen/terraform/command/get.rb +1 -1
- data/lib/kitchen/terraform/command/init/post_zero_fifteen_zero.rb +89 -0
- data/lib/kitchen/terraform/command/init/pre_zero_fifteen_zero.rb +101 -0
- data/lib/kitchen/terraform/command/init.rb +3 -80
- data/lib/kitchen/terraform/command/init_factory.rb +52 -0
- data/lib/kitchen/terraform/command/output.rb +1 -1
- data/lib/kitchen/terraform/command/validate/post_zero_fifteen_zero.rb +51 -0
- data/lib/kitchen/terraform/command/validate/pre_zero_fifteen_zero.rb +65 -0
- data/lib/kitchen/terraform/command/validate.rb +3 -41
- data/lib/kitchen/terraform/command/validate_factory.rb +54 -0
- data/lib/kitchen/terraform/command/version.rb +1 -1
- data/lib/kitchen/terraform/command/workspace_delete.rb +1 -1
- data/lib/kitchen/terraform/command/workspace_new.rb +1 -1
- data/lib/kitchen/terraform/command/workspace_select.rb +1 -1
- data/lib/kitchen/terraform/command.rb +1 -1
- data/lib/kitchen/terraform/command_executor.rb +3 -5
- data/lib/kitchen/terraform/command_flag/backend_config.rb +1 -1
- data/lib/kitchen/terraform/command_flag/color.rb +1 -1
- data/lib/kitchen/terraform/command_flag/lock_timeout.rb +1 -1
- data/lib/kitchen/terraform/command_flag/plugin_dir.rb +1 -1
- data/lib/kitchen/terraform/command_flag/upgrade.rb +2 -2
- data/lib/kitchen/terraform/command_flag/var.rb +1 -1
- data/lib/kitchen/terraform/command_flag/var_file.rb +1 -1
- data/lib/kitchen/terraform/command_flag.rb +1 -1
- data/lib/kitchen/terraform/config_attribute/backend_configurations.rb +1 -1
- data/lib/kitchen/terraform/config_attribute/client.rb +3 -3
- data/lib/kitchen/terraform/config_attribute/color.rb +3 -3
- data/lib/kitchen/terraform/config_attribute/command_timeout.rb +1 -1
- data/lib/kitchen/terraform/config_attribute/fail_fast.rb +3 -3
- data/lib/kitchen/terraform/config_attribute/lock.rb +3 -3
- data/lib/kitchen/terraform/config_attribute/lock_timeout.rb +1 -1
- data/lib/kitchen/terraform/config_attribute/parallelism.rb +1 -1
- data/lib/kitchen/terraform/config_attribute/plugin_directory.rb +3 -3
- data/lib/kitchen/terraform/config_attribute/root_module_directory.rb +3 -3
- data/lib/kitchen/terraform/config_attribute/systems.rb +552 -4
- data/lib/kitchen/terraform/config_attribute/variable_files.rb +3 -3
- data/lib/kitchen/terraform/config_attribute/variables.rb +1 -1
- data/lib/kitchen/terraform/config_attribute/verify_version.rb +3 -3
- data/lib/kitchen/terraform/config_attribute.rb +1 -1
- data/lib/kitchen/terraform/config_attribute_cacher.rb +1 -1
- data/lib/kitchen/terraform/config_attribute_contract/array_of_strings.rb +30 -0
- data/lib/kitchen/terraform/{config_schemas → config_attribute_contract}/boolean.rb +7 -11
- data/lib/kitchen/terraform/config_attribute_contract/hash_of_symbols_and_strings.rb +41 -0
- data/lib/kitchen/terraform/{config_schemas.rb → config_attribute_contract/integer.rb} +10 -3
- data/lib/kitchen/terraform/config_attribute_contract/optional_string.rb +30 -0
- data/lib/kitchen/terraform/{config_schemas → config_attribute_contract}/string.rb +7 -9
- data/lib/kitchen/terraform/config_attribute_contract/systems.rb +63 -0
- data/lib/kitchen/terraform/{config_predicates.rb → config_attribute_contract.rb} +3 -3
- data/lib/kitchen/terraform/config_attribute_definer.rb +2 -2
- data/lib/kitchen/terraform/config_attribute_type/hash_of_symbols_and_strings.rb +9 -16
- data/lib/kitchen/terraform/config_attribute_type/integer.rb +27 -23
- data/lib/kitchen/terraform/config_attribute_type.rb +1 -1
- data/lib/kitchen/terraform/configurable.rb +2 -2
- data/lib/kitchen/terraform/debug_logger.rb +1 -1
- data/lib/kitchen/terraform/deprecating.rb +1 -1
- data/lib/kitchen/terraform/driver/create.rb +39 -16
- data/lib/kitchen/terraform/driver/destroy.rb +53 -21
- data/lib/kitchen/terraform/driver.rb +1 -1
- data/lib/kitchen/terraform/error.rb +1 -1
- data/lib/kitchen/terraform/file_path_config_attribute_definer.rb +1 -1
- data/lib/kitchen/terraform/inspec/fail_fast_with_hosts.rb +1 -1
- data/lib/kitchen/terraform/inspec/fail_slow_with_hosts.rb +1 -1
- data/lib/kitchen/terraform/inspec/without_hosts.rb +1 -1
- data/lib/kitchen/terraform/inspec.rb +1 -1
- data/lib/kitchen/terraform/inspec_factory.rb +1 -1
- data/lib/kitchen/terraform/inspec_options_factory.rb +1 -1
- data/lib/kitchen/terraform/inspec_runner.rb +5 -4
- data/lib/kitchen/terraform/outputs_manager.rb +1 -1
- data/lib/kitchen/terraform/outputs_parser.rb +1 -1
- data/lib/kitchen/terraform/outputs_reader.rb +2 -2
- data/lib/kitchen/terraform/provisioner/converge.rb +52 -25
- data/lib/kitchen/terraform/provisioner.rb +1 -1
- data/lib/kitchen/terraform/raise/action_failed.rb +1 -1
- data/lib/kitchen/terraform/raise/client_error.rb +1 -1
- data/lib/kitchen/terraform/raise.rb +1 -1
- data/lib/kitchen/terraform/shell_out.rb +6 -5
- data/lib/kitchen/terraform/system.rb +1 -1
- data/lib/kitchen/terraform/system_attrs_inputs_resolver.rb +1 -1
- data/lib/kitchen/terraform/system_attrs_outputs_resolver.rb +1 -1
- data/lib/kitchen/terraform/system_bastion_host_resolver.rb +1 -1
- data/lib/kitchen/terraform/system_hosts_resolver.rb +1 -1
- data/lib/kitchen/terraform/system_inspec_map.rb +1 -1
- data/lib/kitchen/terraform/systems_verifier/fail_fast.rb +1 -1
- data/lib/kitchen/terraform/systems_verifier/fail_slow.rb +1 -1
- data/lib/kitchen/terraform/systems_verifier.rb +1 -1
- data/lib/kitchen/terraform/systems_verifier_factory.rb +1 -1
- data/lib/kitchen/terraform/unsupported_client_version_error.rb +1 -1
- data/lib/kitchen/terraform/variables_manager.rb +1 -1
- data/lib/kitchen/terraform/verify_version.rb +5 -17
- data/lib/kitchen/terraform/verify_version_rescue_strategy/permissive.rb +1 -1
- data/lib/kitchen/terraform/verify_version_rescue_strategy/strict.rb +1 -1
- data/lib/kitchen/terraform/verify_version_rescue_strategy.rb +1 -1
- data/lib/kitchen/terraform/verify_version_rescue_strategy_factory.rb +1 -1
- data/lib/kitchen/terraform/version.rb +2 -2
- data/lib/kitchen/terraform/version_verifier.rb +1 -1
- data/lib/kitchen/terraform/version_verifier_strategy/supported.rb +1 -1
- data/lib/kitchen/terraform/version_verifier_strategy/unsupported.rb +1 -1
- data/lib/kitchen/terraform/version_verifier_strategy.rb +1 -1
- data/lib/kitchen/terraform/version_verifier_strategy_factory.rb +1 -1
- data/lib/kitchen/terraform.rb +1 -1
- data/lib/kitchen/verifier/terraform.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +65 -62
- metadata.gz.sig +0 -0
- data/lib/kitchen/terraform/config_predicates/hash_of_symbols_and_strings.rb +0 -81
- data/lib/kitchen/terraform/config_schemas/array_of_strings.rb +0 -38
- data/lib/kitchen/terraform/config_schemas/optional_string.rb +0 -38
- data/lib/kitchen/terraform/config_schemas/system.rb +0 -609
- data/lib/kitchen/terraform/config_schemas/systems.rb +0 -37
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright 2016-
|
|
3
|
+
# Copyright 2016-2021 Copado NCS LLC
|
|
4
4
|
#
|
|
5
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
# you may not use this file except in compliance with the License.
|
|
@@ -14,49 +14,11 @@
|
|
|
14
14
|
# See the License for the specific language governing permissions and
|
|
15
15
|
# limitations under the License.
|
|
16
16
|
|
|
17
|
-
require "kitchen/terraform/command_flag/color"
|
|
18
|
-
require "kitchen/terraform/command_flag/var_file"
|
|
19
|
-
require "kitchen/terraform/command_flag/var"
|
|
20
|
-
require "shellwords"
|
|
21
|
-
|
|
22
17
|
module Kitchen
|
|
23
18
|
module Terraform
|
|
24
19
|
module Command
|
|
25
|
-
#
|
|
26
|
-
|
|
27
|
-
# [-no-color] \
|
|
28
|
-
# [-var=<variables.first>...] \
|
|
29
|
-
# [-var-file=<variable_files.first>...] \
|
|
30
|
-
# <directory>
|
|
31
|
-
class Validate
|
|
32
|
-
# #initialize prepares a new instance of the class.
|
|
33
|
-
#
|
|
34
|
-
# @param config [Hash] the configuration of the driver.
|
|
35
|
-
# @option config [Boolean] :color a toggle of colored output from the Terraform client.
|
|
36
|
-
# @option config [Array<String>] :variable_files a list of pathnames of Terraform variable files to evaluate.
|
|
37
|
-
# @option config [Hash{String=>String}] :variables a mapping of Terraform variables to evaluate.
|
|
38
|
-
# @return [Kitchen::Terraform::Command::Validate]
|
|
39
|
-
def initialize(config:)
|
|
40
|
-
self.color = ::Kitchen::Terraform::CommandFlag::Color.new enabled: config.fetch(:color)
|
|
41
|
-
self.var_file = ::Kitchen::Terraform::CommandFlag::VarFile.new pathnames: config.fetch(:variable_files)
|
|
42
|
-
self.var = ::Kitchen::Terraform::CommandFlag::Var.new arguments: config.fetch(:variables)
|
|
43
|
-
end
|
|
44
|
-
|
|
45
|
-
# @return [String] the command with flags.
|
|
46
|
-
def to_s
|
|
47
|
-
"validate " \
|
|
48
|
-
"#{color} " \
|
|
49
|
-
"#{var} " \
|
|
50
|
-
"#{var_file}"
|
|
51
|
-
end
|
|
52
|
-
|
|
53
|
-
private
|
|
54
|
-
|
|
55
|
-
attr_accessor(
|
|
56
|
-
:color,
|
|
57
|
-
:var_file,
|
|
58
|
-
:var,
|
|
59
|
-
)
|
|
20
|
+
# Validate is the namespace for Terraform Validate commands.
|
|
21
|
+
module Validate
|
|
60
22
|
end
|
|
61
23
|
end
|
|
62
24
|
end
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2016-2021 Copado NCS LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
require "kitchen/terraform/command/validate/post_zero_fifteen_zero"
|
|
18
|
+
require "kitchen/terraform/command/validate/pre_zero_fifteen_zero"
|
|
19
|
+
require "rubygems"
|
|
20
|
+
|
|
21
|
+
module Kitchen
|
|
22
|
+
module Terraform
|
|
23
|
+
module Command
|
|
24
|
+
# ValidateFactory is the class of objects which build Validate objects.
|
|
25
|
+
class ValidateFactory
|
|
26
|
+
# #build creates a new instance of an Validate object.
|
|
27
|
+
#
|
|
28
|
+
# @param config [Hash] the configuration of the driver.
|
|
29
|
+
# @return [Kitchen::Terraform::Command::Validate::PreZeroFifteenZero,
|
|
30
|
+
# Kitchen::Terraform::Command::Validate::PostZeroFifteenZero]
|
|
31
|
+
def build(config:)
|
|
32
|
+
if requirement.satisfied_by? version
|
|
33
|
+
return ::Kitchen::Terraform::Command::Validate::PreZeroFifteenZero.new config: config
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
::Kitchen::Terraform::Command::Validate::PostZeroFifteenZero.new config: config
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
# #initialize prepares a new instance of the class
|
|
40
|
+
#
|
|
41
|
+
# @param version [Gem::Version] a client version.
|
|
42
|
+
# @return [Kitchen::Terraform::Command::ValidateFactory]
|
|
43
|
+
def initialize(version:)
|
|
44
|
+
self.requirement = ::Gem::Requirement.new "< 0.15.0"
|
|
45
|
+
self.version = version
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
private
|
|
49
|
+
|
|
50
|
+
attr_accessor :requirement, :version
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright 2016-
|
|
3
|
+
# Copyright 2016-2021 Copado NCS LLC
|
|
4
4
|
#
|
|
5
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
# you may not use this file except in compliance with the License.
|
|
@@ -40,14 +40,12 @@ module Kitchen
|
|
|
40
40
|
# @yieldparam standard_output [String] the standard output of the command.
|
|
41
41
|
# @raise [Kitchen::TransientFailure] if running the command results in failure.
|
|
42
42
|
# @return [self]
|
|
43
|
-
def run(command:, options
|
|
43
|
+
def run(command:, options:, &block)
|
|
44
44
|
::Kitchen::Terraform::ShellOut.new(
|
|
45
45
|
command: "#{client} #{command}",
|
|
46
46
|
logger: logger,
|
|
47
47
|
options: options,
|
|
48
|
-
).run
|
|
49
|
-
yield standard_output: standard_output
|
|
50
|
-
end
|
|
48
|
+
).run(&block)
|
|
51
49
|
|
|
52
50
|
self
|
|
53
51
|
end
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright 2016-
|
|
3
|
+
# Copyright 2016-2021 Copado NCS LLC
|
|
4
4
|
#
|
|
5
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
# you may not use this file except in compliance with the License.
|
|
@@ -30,7 +30,7 @@ module Kitchen
|
|
|
30
30
|
# @return [String] the upgrade flag.
|
|
31
31
|
def to_s
|
|
32
32
|
if enabled
|
|
33
|
-
"-upgrade"
|
|
33
|
+
"-upgrade=true"
|
|
34
34
|
else
|
|
35
35
|
""
|
|
36
36
|
end
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright 2016-
|
|
3
|
+
# Copyright 2016-2021 Copado NCS LLC
|
|
4
4
|
#
|
|
5
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
# you may not use this file except in compliance with the License.
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
# limitations under the License.
|
|
16
16
|
|
|
17
17
|
require "kitchen/terraform/config_attribute_cacher"
|
|
18
|
-
require "kitchen/terraform/
|
|
18
|
+
require "kitchen/terraform/config_attribute_contract/string"
|
|
19
19
|
require "kitchen/terraform/config_attribute_definer"
|
|
20
20
|
require "tty/which"
|
|
21
21
|
|
|
@@ -47,7 +47,7 @@ module Kitchen
|
|
|
47
47
|
def included(plugin_class)
|
|
48
48
|
::Kitchen::Terraform::ConfigAttributeDefiner.new(
|
|
49
49
|
attribute: self,
|
|
50
|
-
schema: ::Kitchen::Terraform::
|
|
50
|
+
schema: ::Kitchen::Terraform::ConfigAttributeContract::String.new,
|
|
51
51
|
).define plugin_class: plugin_class
|
|
52
52
|
plugin_class.expand_path_for to_sym do |plugin|
|
|
53
53
|
!::TTY::Which.exist? plugin[to_sym]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright 2016-
|
|
3
|
+
# Copyright 2016-2021 Copado NCS LLC
|
|
4
4
|
#
|
|
5
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
# you may not use this file except in compliance with the License.
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
require "kitchen"
|
|
18
18
|
require "kitchen/terraform/config_attribute"
|
|
19
|
-
require "kitchen/terraform/
|
|
19
|
+
require "kitchen/terraform/config_attribute_contract/boolean"
|
|
20
20
|
|
|
21
21
|
module Kitchen
|
|
22
22
|
module Terraform
|
|
@@ -37,7 +37,7 @@ module Kitchen
|
|
|
37
37
|
default_value: lambda do
|
|
38
38
|
::Kitchen.tty?
|
|
39
39
|
end,
|
|
40
|
-
schema: ::Kitchen::Terraform::
|
|
40
|
+
schema: ::Kitchen::Terraform::ConfigAttributeContract::Boolean.new,
|
|
41
41
|
).apply config_attribute: self
|
|
42
42
|
end
|
|
43
43
|
end
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright 2016-
|
|
3
|
+
# Copyright 2016-2021 Copado NCS LLC
|
|
4
4
|
#
|
|
5
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
# you may not use this file except in compliance with the License.
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
require "kitchen"
|
|
18
18
|
require "kitchen/terraform/config_attribute"
|
|
19
|
-
require "kitchen/terraform/
|
|
19
|
+
require "kitchen/terraform/config_attribute_contract/boolean"
|
|
20
20
|
|
|
21
21
|
module Kitchen
|
|
22
22
|
module Terraform
|
|
@@ -36,7 +36,7 @@ module Kitchen
|
|
|
36
36
|
default_value: lambda do
|
|
37
37
|
true
|
|
38
38
|
end,
|
|
39
|
-
schema: ::Kitchen::Terraform::
|
|
39
|
+
schema: ::Kitchen::Terraform::ConfigAttributeContract::Boolean.new,
|
|
40
40
|
).apply config_attribute: self
|
|
41
41
|
end
|
|
42
42
|
end
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright 2016-
|
|
3
|
+
# Copyright 2016-2021 Copado NCS LLC
|
|
4
4
|
#
|
|
5
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
# you may not use this file except in compliance with the License.
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
require "kitchen"
|
|
18
18
|
require "kitchen/terraform/config_attribute"
|
|
19
|
-
require "kitchen/terraform/
|
|
19
|
+
require "kitchen/terraform/config_attribute_contract/boolean"
|
|
20
20
|
|
|
21
21
|
module Kitchen
|
|
22
22
|
module Terraform
|
|
@@ -33,7 +33,7 @@ module Kitchen
|
|
|
33
33
|
default_value: lambda do
|
|
34
34
|
true
|
|
35
35
|
end,
|
|
36
|
-
schema: ::Kitchen::Terraform::
|
|
36
|
+
schema: ::Kitchen::Terraform::ConfigAttributeContract::Boolean.new,
|
|
37
37
|
).apply config_attribute: self
|
|
38
38
|
end
|
|
39
39
|
end
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright 2016-
|
|
3
|
+
# Copyright 2016-2021 Copado NCS LLC
|
|
4
4
|
#
|
|
5
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
# you may not use this file except in compliance with the License.
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
require "kitchen/terraform/config_attribute"
|
|
18
18
|
require "kitchen/terraform/config_attribute_cacher"
|
|
19
|
-
require "kitchen/terraform/
|
|
19
|
+
require "kitchen/terraform/config_attribute_contract/optional_string"
|
|
20
20
|
require "kitchen/terraform/file_path_config_attribute_definer"
|
|
21
21
|
|
|
22
22
|
module Kitchen
|
|
@@ -41,7 +41,7 @@ module Kitchen
|
|
|
41
41
|
def included(plugin_class)
|
|
42
42
|
::Kitchen::Terraform::FilePathConfigAttributeDefiner.new(
|
|
43
43
|
attribute: self,
|
|
44
|
-
schema: ::Kitchen::Terraform::
|
|
44
|
+
schema: ::Kitchen::Terraform::ConfigAttributeContract::OptionalString.new,
|
|
45
45
|
).define plugin_class: plugin_class
|
|
46
46
|
end
|
|
47
47
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright 2016-
|
|
3
|
+
# Copyright 2016-2021 Copado NCS LLC
|
|
4
4
|
#
|
|
5
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
# you may not use this file except in compliance with the License.
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
require "kitchen/terraform/config_attribute"
|
|
18
18
|
require "kitchen/terraform/config_attribute_cacher"
|
|
19
|
-
require "kitchen/terraform/
|
|
19
|
+
require "kitchen/terraform/config_attribute_contract/string"
|
|
20
20
|
require "kitchen/terraform/file_path_config_attribute_definer"
|
|
21
21
|
|
|
22
22
|
module Kitchen
|
|
@@ -38,7 +38,7 @@ module Kitchen
|
|
|
38
38
|
def included(plugin_class)
|
|
39
39
|
::Kitchen::Terraform::FilePathConfigAttributeDefiner.new(
|
|
40
40
|
attribute: self,
|
|
41
|
-
schema: ::Kitchen::Terraform::
|
|
41
|
+
schema: ::Kitchen::Terraform::ConfigAttributeContract::String.new,
|
|
42
42
|
).define plugin_class: plugin_class
|
|
43
43
|
end
|
|
44
44
|
|