Module: Kitchen::Terraform::ConfigAttribute::VariableFiles
- Extended by:
- Kitchen::Terraform::ConfigAttributeCacher
- Included in:
- Driver::Terraform
- Defined in:
- lib/kitchen/terraform/config_attribute/variable_files.rb
Overview
This attribute comprises paths to Terraform variable files.
- Type
- Required
-
False
- Example
-
_
variable_files: - /path/to/first/variable/file - /path/to/second/variable/file
Class Method Summary collapse
-
.included(plugin_class) ⇒ void
A callback to define the configuration attribute which is invoked when this module is included in a plugin class.
-
.to_sym ⇒ Symbol
The symbol corresponding to this attribute.
Instance Method Summary collapse
-
#config_variable_files_default_value ⇒ Array
An empty array.
Methods included from Kitchen::Terraform::ConfigAttributeCacher
Class Method Details
.included(plugin_class) ⇒ void
This method returns an undefined value.
A callback to define the configuration attribute which is invoked when this module is included in a plugin class.
42 43 44 45 46 47 |
# File 'lib/kitchen/terraform/config_attribute/variable_files.rb', line 42 def included(plugin_class) ::Kitchen::Terraform::FilePathConfigAttributeDefiner.new( attribute: self, schema: ::Kitchen::Terraform::ConfigAttributeContract::ArrayOfStrings.new, ).define plugin_class: plugin_class end |
.to_sym ⇒ Symbol
Returns the symbol corresponding to this attribute.
50 51 52 |
# File 'lib/kitchen/terraform/config_attribute/variable_files.rb', line 50 def to_sym :variable_files end |
Instance Method Details
#config_variable_files_default_value ⇒ Array
Returns an empty array.
58 59 60 |
# File 'lib/kitchen/terraform/config_attribute/variable_files.rb', line 58 def config_variable_files_default_value [] end |