module Kitchen::Terraform::ConfigAttribute::VariableFiles

This attribute comprises paths to {www.terraform.io/docs/configuration/variables.html#variable-files Terraform variable files}.

Type

{www.yaml.org/spec/1.2/spec.html#id2760118 Sequence of scalars}

Required

False

Example

_

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

Public Class Methods

included(plugin_class) click to toggle source

A callback to define the configuration attribute which is invoked when this module is included in a plugin class.

@param plugin_class [Kitchen::Configurable] A plugin class. @return [void]

# 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() click to toggle source

@return [Symbol] the symbol corresponding to this attribute.

# File lib/kitchen/terraform/config_attribute/variable_files.rb, line 50
def to_sym
  :variable_files
end

Public Instance Methods

config_variable_files_default_value() click to toggle source

@return [Array] an empty array.

# File lib/kitchen/terraform/config_attribute/variable_files.rb, line 58
def config_variable_files_default_value
  []
end