Class: Kitchen::Terraform::VerifyVersionRescueStrategy::Strict

Inherits:
Object
  • Object
show all
Defined in:
lib/kitchen/terraform/verify_version_rescue_strategy/strict.rb

Overview

Strict is the class of objects which provide a strict strategy rescue strategy to handle a failure to verify the Terraform client version.

Instance Method Summary collapse

Constructor Details

#initializeKitchen::Terraform::VerifyVersionRescueStrategy::Permissive

#initialize prepares a new instance of the class.



36
37
38
39
# File 'lib/kitchen/terraform/verify_version_rescue_strategy/strict.rb', line 36

def initialize
  self.message = "Verifying the Terraform client version failed. Set `driver.verify_version: false` to " \
                 "downgrade this error to a warning."
end

Instance Method Details

#callvoid

This method returns an undefined value.

#call raises an error.



29
30
31
# File 'lib/kitchen/terraform/verify_version_rescue_strategy/strict.rb', line 29

def call
  raise ::Kitchen::Terraform::UnsupportedClientVersionError, message
end