Module: Job::Test::States
- Extended by:
- ActiveSupport::Concern
- Included in:
- Job::Test
- Defined in:
- lib/travis/model/job/test/states.rb
Instance Method Summary collapse
Instance Method Details
#append_log!(chars) ⇒ Object
33 34 35 |
# File 'lib/travis/model/job/test/states.rb', line 33 def append_log!(chars) notify(:log, :build => { :_log => chars }) end |
#finish(data = {}) ⇒ Object
27 28 29 30 31 |
# File 'lib/travis/model/job/test/states.rb', line 27 def finish(data = {}) [:status, :finished_at].each do |key| send(:"#{key}=", data[key]) if data.key?(key) end end |
#start(data = {}) ⇒ Object
23 24 25 |
# File 'lib/travis/model/job/test/states.rb', line 23 def start(data = {}) self.started_at = data[:started_at] end |