Class: Yobi::CheckSummary

Inherits:
FancyHash show all
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

Methods inherited from FancyHash

#initialize, #inspect, #pretty_print

Constructor Details

This class inherits a constructor from Yobi::FancyHash

Instance Method Details

#broken_packsArray[String]

Pack IDs needing #repair_packs / #repair_snapshots.

Returns:

  • (Array[String])


85
86
87
# File 'lib/yobi/repository/check.rb', line 85

def broken_packs
  self["broken_packs"] || []
end

#num_errorsInteger

Returns:

  • (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.

Returns:

  • (Boolean)


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.

Returns:

  • (Boolean)


90
91
92
# File 'lib/yobi/repository/check.rb', line 90

def suggest_repair_index?
  self["suggest_repair_index"]
end