lib/kitchen/verifier/terraform.rb
# The verifier enumerates through each host of each system and verifies the associated InSpec controls.
#
# @example
#   `kitchen verify suite-name`
# @param _kitchen_state [::Hash] the mutable instance and verifier state.
# @raise [::Kitchen::ActionFailed] if the result of the action is a failure.
# @return [void]
The verifier enumerates through each host of each system and verifies the associated InSpec controls.
The verifier enumerates through each host of each system and verifies the associated InSpec controls .
def call(_kitchen_state)
        load_variables
        verify_systems
        if !error_messages.empty?
          raise ::Kitchen::ActionFailed, error_messages.join("\n\n")
        end
      rescue ::Kitchen::Terraform::Error => error
        raise ::Kitchen::ActionFailed, error.message
      end
def call ( _kitchen_state ) load_variables verify_systems if ! error_messages . empty? raise :: Kitchen :: ActionFailed , error_messages . join ( "\n\n" ) end rescue :: Kitchen :: Terraform :: Error => error raise :: Kitchen :: ActionFailed , error . message end
The verifier enumerates through each host of each system and verifies the associated InSpec controls.
The verifier enumerates through each host of each system and verifies the associated InSpec controls .
None
void
[::Kitchen::ActionFailed] if the result of the action is a failure.
[ :: Kitchen :: ActionFailed ] if the result of the action is a failure .
_kitchen_state
the mutable instance and verifier state.
the mutable instance and verifier state .
example
`kitchen verify suite-name`
` kitchen verify suite - name `