Class: Suma::Cli::ValidateLinks

Inherits:
Thor
  • Object
show all
Defined in:
lib/suma/cli/validate_links.rb

Overview

Deprecated: prefer Cli::Validate#links (the suma validate links subcommand). This class is retained as a backwards-compat entry point — all orchestration now lives in Suma::LinkValidation.

Instance Method Summary collapse

Instance Method Details

#extract_and_validate(schemas_file = "schemas-srl.yml", documents_path = "documents", output_file = "validation_results.txt") ⇒ Object



13
14
15
16
17
18
19
20
21
22
# File 'lib/suma/cli/validate_links.rb', line 13

def extract_and_validate(schemas_file = "schemas-srl.yml",
                         documents_path = "documents",
                         output_file = "validation_results.txt")
  result = LinkValidation.new(
    schemas_file: schemas_file,
    documents_path: documents_path,
    output_file: output_file,
  ).call
  puts LinkValidation.generate_summary(result)
end