Module: Build::Messages
- Included in:
- Build
- Defined in:
- lib/travis/model/build/messages.rb
Instance Method Summary collapse
Instance Method Details
#human_status_message ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/travis/model/build/messages.rb', line 17 def case when "Pending"; "The build is pending." when "Passed"; "The build passed." when "Failed"; "The build failed." when "Fixed"; "The build was fixed." when "Broken"; "The build was broken." when "Still Failing"; "The build is still failing." else end end |
#status_message ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/travis/model/build/messages.rb', line 3 def if pending? 'Pending' elsif prev = previous_on_branch if passed? prev.passed? ? 'Passed' : 'Fixed' else prev.passed? ? 'Broken' : 'Still Failing' end else passed? ? 'Passed' : 'Failed' end end |