Class: PigCI::Summary::Terminal

Inherits:
PigCI::Summary show all
Defined in:
lib/pig_ci/summary/terminal.rb

Instance Method Summary collapse

Constructor Details

#initialize(reports:) ⇒ Terminal

Returns a new instance of Terminal.


4
5
6
7
# File 'lib/pig_ci/summary/terminal.rb', line 4

def initialize(reports:)
  @reports = reports
  @timestamp = PigCI.run_timestamp
end

Instance Method Details

#print!Object


9
10
11
12
13
# File 'lib/pig_ci/summary/terminal.rb', line 9

def print!
  @reports.each do |report|
    print_report(report)
  end
end