gitlab-org--gitlab-foss/app/services/test_hook_service.rb
2014-07-29 11:49:46 +02:00

9 lines
199 B
Ruby

class TestHookService
def execute(hook, current_user)
data = GitPushService.new.sample_data(hook.project, current_user)
hook.execute(data)
true
rescue SocketError
false
end
end