Class: Gotsha::Actions::Show

Inherits:
Object
  • Object
show all
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

#callObject

Raises:



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