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

Sequence of scalars

Required

False

Example

_

variable_files:
  - /path/to/first/variable/file
  - /path/to/second/variable/file

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Kitchen::Terraform::ConfigAttributeCacher

define_cache, extended

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.

Parameters:

  • plugin_class (Kitchen::Configurable)

    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::ConfigSchemas::ArrayOfStrings,
  ).define plugin_class: plugin_class
end

.to_symSymbol

Returns the symbol corresponding to this attribute.

Returns:

  • (Symbol)

    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_valueArray

Returns an empty array.

Returns:

  • (Array)

    an empty array.



58
59
60
# File 'lib/kitchen/terraform/config_attribute/variable_files.rb', line 58

def config_variable_files_default_value
  []
end