class Kitchen::Terraform::CommandFlag::LockTimeout

LockTimeout is the class of objects which control the duration in which to retry the acquisition of the state lock.

Attributes

duration[RW]

Public Class Methods

new(duration:) click to toggle source

initialize prepares a new instance of the class.

@param duration [Integer] the duration in seconds. @return [Kitchen::Terraform::CommandFlag::LockTimeout]

# File lib/kitchen/terraform/command_flag/lock_timeout.rb, line 27
def initialize(duration:)
  self.duration = duration
end

Public Instance Methods

to_s() click to toggle source

@return [String] the backend configuration flag.

# File lib/kitchen/terraform/command_flag/lock_timeout.rb, line 32
def to_s
  "-lock-timeout=#{duration}s"
end