Class: Yobi::CheckSummary
- Defined in:
- lib/yobi/repository/check.rb,
sig/yobi.rbs
Overview
The "summary" message from a check run, the final result once the
command finishes. Dispatched to Yobi::CheckOutcome#summary.
Instance Method Summary collapse
-
#broken_packs ⇒ Array<String>
Pack IDs needing
repair_packs/repair_snapshots. - #num_errors ⇒ Integer
-
#suggest_prune? ⇒ Boolean
Whether to run Repository#prune.
-
#suggest_repair_index? ⇒ Boolean
Whether to run Repository#repair_index.
Methods inherited from FancyHash
#initialize, #inspect, #pretty_print
Constructor Details
This class inherits a constructor from Yobi::FancyHash
Instance Method Details
#broken_packs ⇒ Array<String>
Returns pack IDs needing repair_packs/repair_snapshots.
98 99 100 |
# File 'lib/yobi/repository/check.rb', line 98 def broken_packs self["broken_packs"] || [] end |
#num_errors ⇒ Integer
93 94 95 |
# File 'lib/yobi/repository/check.rb', line 93 def num_errors self["num_errors"] || 0 end |
#suggest_prune? ⇒ Boolean
Returns whether to run Repository#prune.
108 109 110 |
# File 'lib/yobi/repository/check.rb', line 108 def suggest_prune? self["suggest_prune"] end |
#suggest_repair_index? ⇒ Boolean
Returns whether to run Repository#repair_index.
103 104 105 |
# File 'lib/yobi/repository/check.rb', line 103 def suggest_repair_index? self["suggest_repair_index"] end |