Class: Kitchen::Terraform::CommandFlag::LockTimeout
- Inherits:
-
Object
- Object
- Kitchen::Terraform::CommandFlag::LockTimeout
- Defined in:
- lib/kitchen/terraform/command_flag/lock_timeout.rb
Overview
LockTimeout is the class of objects which control the duration in which to retry the acquisition of the state lock.
Instance Method Summary collapse
-
#initialize(duration:) ⇒ Kitchen::Terraform::CommandFlag::LockTimeout
constructor
#initialize prepares a new instance of the class.
-
#to_s ⇒ String
The backend configuration flag.
Constructor Details
#initialize(duration:) ⇒ Kitchen::Terraform::CommandFlag::LockTimeout
#initialize prepares a new instance of the class.
27 28 29 |
# File 'lib/kitchen/terraform/command_flag/lock_timeout.rb', line 27 def initialize(duration:) self.duration = duration end |
Instance Method Details
#to_s ⇒ String
Returns the backend configuration flag.
32 33 34 |
# File 'lib/kitchen/terraform/command_flag/lock_timeout.rb', line 32 def to_s "-lock-timeout=#{duration}s" end |