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>

Returns pack IDs needing repair_packs/repair_snapshots.

Returns:

  • (Array<String>)

    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_errorsInteger

Returns:

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

Returns:



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.

Returns:



103
104
105
# File 'lib/yobi/repository/check.rb', line 103

def suggest_repair_index?
  self["suggest_repair_index"]
end