Class: Autobuild::StdoutReporter

Inherits:
Reporter
  • Object
show all
Defined in:
lib/autobuild/reporting.rb

Overview

Display using stdout

Instance Method Summary collapse

Instance Method Details

#error(error) ⇒ Object



227
228
229
# File 'lib/autobuild/reporting.rb', line 227

def error(error)
    STDERR.puts "Build failed: #{error}"
end

#successObject



231
232
233
234
# File 'lib/autobuild/reporting.rb', line 231

def success
    puts "Build finished successfully at #{Time.now}"
    puts Autobuild.post_success_message if Autobuild.post_success_message
end