Class: CiserverFormatter::ProgressReporter

Inherits:
Object
  • Object
show all
Defined in:
lib/ciserver_formatter/progress_reporter.rb

Instance Method Summary collapse

Constructor Details

#initialize(output_file) ⇒ ProgressReporter

Returns a new instance of ProgressReporter.



4
5
6
# File 'lib/ciserver_formatter/progress_reporter.rb', line 4

def initialize(output_file)
  @output_file = output_file
end

Instance Method Details

#report(formatter) ⇒ Object



8
9
10
# File 'lib/ciserver_formatter/progress_reporter.rb', line 8

def report(formatter)
  File.open(@output_file, 'w') { |f| f.write(output_for_formatter(formatter)) }
end