Validation and repair
Purpose
This document explains how to validate archive integrity and repair corrupted archives using Cabriolet’s validation and repair tools.
Use this guide when you need to: * Verify archive integrity before processing * Detect corruption in archives * Recover files from damaged archives * Implement quality assurance workflows
Concepts
Archive Validation
Archive Repair
Validation in CI/CD
# Pre-deployment validation
validator = Cabriolet::Validator.new('release.cab', level: :thorough)
report = validator.validate
exit 1 unless report.valid?
# Deploy if valid
deploy_archive('release.cab')