class WarpEngine::AssetCoverageChecklist
Renders a WarpEngine::AssetCoverage report as the plain-text checklist that rake warp_engine:builds:check prints: a header, one block per software listing every expected asset kind with a MARKERS box, and a footer with the totals.
Constants
Attributes
The rendered WarpEngine::AssetCoverage and the only-missing flag.
The rendered WarpEngine::AssetCoverage and the only-missing flag.
Public Class Methods
# File app/presenters/warp_engine/asset_coverage_checklist.rb, line 21 def initialize(coverage, only_missing: false) @coverage = coverage @only_missing = only_missing end
- coverage
-
the
WarpEngine::AssetCoverageto render only_missing-
when true, list only the softwares missing a CI-built kind
Public Instance Methods
Source
# File app/presenters/warp_engine/asset_coverage_checklist.rb, line 30 def lines [ *header, *body, *footer ] end
Returns the checklist as an Array of lines.
Source
# File app/presenters/warp_engine/asset_coverage_checklist.rb, line 35 def to_s = lines.join("\n")
Returns the checklist as one newline-joined String.