Class: Gotsha::Actions::Show
- Inherits:
-
Object
- Object
- Gotsha::Actions::Show
- Defined in:
- lib/gotsha/actions/show.rb
Constant Summary collapse
- DESCRIPTION =
"displays full test results for last commit"
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/gotsha/actions/show.rb', line 8 def call command = BashCommand.silent_run!("git --no-pager notes --ref=gotsha show") raise(Errors::HardFail, "not verified yet") unless command.success? gotsha_result = command.text_output raise(Errors::HardFail, gotsha_result) if gotsha_result.start_with?(Test::TESTS_FAILED_NOTE_PREFIX) gotsha_result end |