Class: PigCI::Summary::HTML

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

Instance Method Summary collapse

Constructor Details

#initialize(reports:) ⇒ HTML

Returns a new instance of HTML.


8
9
10
# File 'lib/pig_ci/summary/html.rb', line 8

def initialize(reports:)
  @reports = reports
end

Instance Method Details

#save!Object


12
13
14
15
16
17
# File 'lib/pig_ci/summary/html.rb', line 12

def save!
  copy_assets!
  File.write(index_file_path, template('index').result(binding))

  puts I18n.t('pig_ci.summary.saved_successfully', output_directory: PigCI.output_directory)
end