Class: Yobi::CheckOutcome

Inherits:
Struct
  • Object
show all
Defined in:
lib/yobi/repository/check.rb,
sig/yobi.rbs

Overview

The outcome of one Repository#check call.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#exit_codeObject

Returns the value of attribute exit_code

Returns:

  • (Object)

    the current value of exit_code



32
33
34
# File 'lib/yobi/repository/check.rb', line 32

def exit_code
  @exit_code
end

#outputObject

Returns the value of attribute output

Returns:

  • (Object)

    the current value of output



32
33
34
# File 'lib/yobi/repository/check.rb', line 32

def output
  @output
end

Instance Method Details

#errorsEnumerable<Yobi::CheckError>

Returns:



39
40
41
# File 'lib/yobi/repository/check.rb', line 39

def errors
  @errors ||= CheckErrors.new(output)
end

#reportHash

Returns Restic's own "summary" fields ("num_errors", "broken_packs", ...).

Returns:

  • (Hash)

    Restic's own "summary" fields ("num_errors", "broken_packs", ...)



34
35
36
# File 'lib/yobi/repository/check.rb', line 34

def report
  @report ||= summary_hash
end