class Kitchen::Terraform::CommandFlag::Var
Var
is the class of objects which control the configuration variables.
Attributes
arguments[RW]
Public Class Methods
new(arguments:)
click to toggle source
initialize prepares a new instance of the class.
@param arguments [Hash{String=>String}] the arguments. @return [Kitchen::Terraform::CommandFlag::Var]
# File lib/kitchen/terraform/command_flag/var.rb, line 26 def initialize(arguments:) self.arguments = arguments end
Public Instance Methods
to_s()
click to toggle source
@return [String] the backend configuration flag.
# File lib/kitchen/terraform/command_flag/var.rb, line 31 def to_s arguments.map do |key, value| "-var=\"#{key}=#{value}\"" end.join " " end