class Verisum::App::Checker

Included Modules

Defined in:

verisum/app/checker.cr

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from module Verisum::App::Utils

remove_bom(line : String) : String remove_bom

Instance methods inherited from module Verisum::Redirect

stderr : IO stderr, stderr=(stderr : IO) stderr=, stdout : IO stdout, stdout=(stdout : IO) stdout=

Constructor Detail

def self.new(option : Option = Option.new) #

[View source]

Class Method Detail

def self.run(option : Option, stdout : IO, stderr : IO) : Int32 #

[View source]

Instance Method Detail

def dispatch(result, filepath, index, expected_hash_value, actual_hash_value, error) : CheckResult #

[View source]
def evaluate_verification(expected_hash_value, actual_hash_value, error) : Symbol #

[View source]
def exit_code : Int32 #

[View source]
def option : Option #

[View source]
def parse_checksum_file(filename) : Array(FileRecord) #

Read the checksum file and parse each line into records


[View source]
def print_error_message(filepath, index, total, error) : Nil #

[View source]
def print_mismatch_message(filepath, index, total, expected_hash_value, actual_hash_value) : Nil #

[View source]
def print_ok_message(filepath, index, total) : Nil #

[View source]
def print_result(result, elapsed_time) : Nil #

[View source]
def run : Int32 #

[View source]
def run_check_file(filename : String) #

[View source]
def screen_width #

[View source]
def screen_width=(screen_width : Int32 | Nil) #

[View source]
def update_clear_flag(type : Symbol) : Bool #

[View source]
def update_counts(result : CheckResult, type : Symbol) : CheckResult #

[View source]
def update_status(type : Symbol) : Int32 #

[View source]
def verify_checksums(records : Array(FileRecord), algorithm : Algorithm) : CheckResult #

Verify the MD5 checksums of the files


[View source]