Class: Gotsha::Actions::Push

Inherits:
Object
  • Object
show all
Defined in:
lib/gotsha/actions/push.rb

Constant Summary collapse

DESCRIPTION =
"pushes Gotsha test results to remote"

Instance Method Summary collapse

Instance Method Details

#callObject

Raises:



8
9
10
11
12
13
14
15
# File 'lib/gotsha/actions/push.rb', line 8

def call
  remote = RemoteResolver.resolve
  command = BashCommand.silent_run!("git push --no-verify --force #{remote} refs/notes/gotsha:refs/notes/gotsha")

  raise(Errors::HardFail, "something went wrong") unless command.success?

  "pushed"
end