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 Yobi::Repository#prune.
-
#suggest_repair_index? ⇒ Boolean
Whether to run Yobi::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]
Pack IDs needing #repair_packs / #repair_snapshots.
85 86 87 |
# File 'lib/yobi/repository/check.rb', line 85 def broken_packs self["broken_packs"] || [] end |
#num_errors ⇒ Integer
80 81 82 |
# File 'lib/yobi/repository/check.rb', line 80 def num_errors self["num_errors"] || 0 end |
#suggest_prune? ⇒ Boolean
Whether to run Yobi::Repository#prune.
95 96 97 |
# File 'lib/yobi/repository/check.rb', line 95 def suggest_prune? self["suggest_prune"] end |
#suggest_repair_index? ⇒ Boolean
Whether to run Yobi::Repository#repair_index.
90 91 92 |
# File 'lib/yobi/repository/check.rb', line 90 def suggest_repair_index? self["suggest_repair_index"] end |