Class: Kitchen::Terraform::SystemsVerifier::FailFast
- Inherits:
-
Object
- Object
- Kitchen::Terraform::SystemsVerifier::FailFast
- Defined in:
- lib/kitchen/terraform/systems_verifier/fail_fast.rb
Overview
FailFast is the class of objects which verify systems and raise rescued errors immediately.
Instance Method Summary collapse
-
#initialize(systems:) ⇒ Kitchen::Terraform::SystemsVerifier::FailFast
constructor
#initialize prepares a new instance of the class.
-
#verify(outputs:, variables:) ⇒ self
#verify verifies each system.
Constructor Details
#initialize(systems:) ⇒ Kitchen::Terraform::SystemsVerifier::FailFast
#initialize prepares a new instance of the class.
28 29 30 |
# File 'lib/kitchen/terraform/systems_verifier/fail_fast.rb', line 28 def initialize(systems:) self.systems = systems end |
Instance Method Details
#verify(outputs:, variables:) ⇒ self
#verify verifies each system.
38 39 40 41 42 43 44 |
# File 'lib/kitchen/terraform/systems_verifier/fail_fast.rb', line 38 def verify(outputs:, variables:) systems.each do |system| system.verify fail_fast: true, outputs: outputs, variables: variables end self end |