Method: CaptainHoog::Git#execute

Defined in:
lib/captain_hoog/git.rb

#executeObject



55
56
57
58
59
60
61
62
63
64
65
# File 'lib/captain_hoog/git.rb', line 55

def execute
  if @test_block
    @test_result = @test_block.call
  else
    # run #run
    @run_block.call
  end
  unless @test_result.is_a?(FalseClass) or @test_result.is_a?(TrueClass)
    raise CaptainHoog::Errors::TestResultNotValidError
  end
end