Class: Yobi::CheckOutcome
- Inherits:
-
Struct
- Object
- Struct
- Yobi::CheckOutcome
- Defined in:
- lib/yobi/repository/check.rb,
sig/yobi.rbs
Overview
The outcome of one Repository#check call.
Instance Attribute Summary collapse
-
#exit_code ⇒ Object
Returns the value of attribute exit_code.
-
#output ⇒ Object
Returns the value of attribute output.
Instance Method Summary collapse
- #errors ⇒ Enumerable<Yobi::CheckError>
-
#report ⇒ Hash
Restic's own
"summary"fields ("num_errors","broken_packs", ...).
Instance Attribute Details
#exit_code ⇒ Object
Returns the value of attribute exit_code
32 33 34 |
# File 'lib/yobi/repository/check.rb', line 32 def exit_code @exit_code end |
#output ⇒ Object
Returns the value of attribute output
32 33 34 |
# File 'lib/yobi/repository/check.rb', line 32 def output @output end |
Instance Method Details
#errors ⇒ Enumerable<Yobi::CheckError>
39 40 41 |
# File 'lib/yobi/repository/check.rb', line 39 def errors @errors ||= CheckErrors.new(output) end |
#report ⇒ Hash
Returns 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 |