Class: CiserverFormatter::StatusReporter
- Inherits:
-
Object
- Object
- CiserverFormatter::StatusReporter
- Defined in:
- lib/ciserver_formatter/status_reporter.rb
Instance Method Summary collapse
- #finish(formatter) ⇒ Object
-
#initialize(file) ⇒ StatusReporter
constructor
A new instance of StatusReporter.
- #start ⇒ Object
Constructor Details
#initialize(file) ⇒ StatusReporter
Returns a new instance of StatusReporter.
3 4 5 |
# File 'lib/ciserver_formatter/status_reporter.rb', line 3 def initialize(file) @file = file end |
Instance Method Details
#finish(formatter) ⇒ Object
11 12 13 |
# File 'lib/ciserver_formatter/status_reporter.rb', line 11 def finish(formatter) File.open(@file, 'w') { |f| f.write(formatter.status.capitalize) } end |
#start ⇒ Object
7 8 9 |
# File 'lib/ciserver_formatter/status_reporter.rb', line 7 def start File.open(@file, 'w') { |f| f.write("Testing") } end |