Class: Kitchen::Terraform::VerifyVersionRescueStrategy::Permissive
- Inherits:
-
Object
- Object
- Kitchen::Terraform::VerifyVersionRescueStrategy::Permissive
- Defined in:
- lib/kitchen/terraform/verify_version_rescue_strategy/permissive.rb
Overview
Permissive is the class of objects which provide a permissive rescue strategy to handle a failure to verify the Terraform client version.
Instance Method Summary collapse
-
#call ⇒ self
#call warns the user that the version is unsupported.
-
#initialize(logger:) ⇒ Kitchen::Terraform::VerifyVersionRescueStrategy::Permissive
constructor
#initialize prepares a new instance of the class.
Constructor Details
#initialize(logger:) ⇒ Kitchen::Terraform::VerifyVersionRescueStrategy::Permissive
#initialize prepares a new instance of the class.
38 39 40 41 42 |
# File 'lib/kitchen/terraform/verify_version_rescue_strategy/permissive.rb', line 38 def initialize(logger:) self.logger = logger self. = "Verifying the Terraform client version failed. Set `driver.verify_version: true` to " \ "upgrade this warning to an error." end |
Instance Method Details
#call ⇒ self
#call warns the user that the version is unsupported.
28 29 30 31 32 |
# File 'lib/kitchen/terraform/verify_version_rescue_strategy/permissive.rb', line 28 def call logger.warn self end |