Class: ExtremeContinuousBuilder::TextFileNotifier

Inherits:
Notifier
  • Object
show all
Defined in:
lib/notifiers.rb

Constant Summary

Constants inherited from Notifier

Notifier::BUILD_RESULT_TYPES

Instance Method Summary collapse

Methods inherited from Notifier

setup

Instance Method Details

#broken(build) ⇒ Object



84
85
86
# File 'lib/notifiers.rb', line 84

def broken(build)
  update_file "[#{@application_name}] Build still broken", build.output
end

#failed(build) ⇒ Object



80
81
82
# File 'lib/notifiers.rb', line 80

def failed(build)
  update_file "[#{@application_name}] Build failed", build.output
end

#revived(build) ⇒ Object



88
89
90
# File 'lib/notifiers.rb', line 88

def revived(build)
  clear_file
end

#setup(options) ⇒ Object



74
75
76
77
78
# File 'lib/notifiers.rb', line 74

def setup(options)
  @application_name = options[:application_name]
  @text_file_path = options[:text_file_path]
  @has_been_setup = true
end