Class: Gotsha::Actions::Fetch
- Inherits:
-
Object
- Object
- Gotsha::Actions::Fetch
- Defined in:
- lib/gotsha/actions/fetch.rb
Constant Summary collapse
- DESCRIPTION =
"fetches Gotsha test results from remote"
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'lib/gotsha/actions/fetch.rb', line 8 def call remote = RemoteResolver.resolve command = BashCommand.silent_run!("git fetch --force #{remote} 'refs/notes/gotsha:refs/notes/gotsha'") raise(Errors::HardFail, "something went wrong") unless command.success? || missing_notes_ref?(command) "fetched" end |