debian-mirror-gitlab/app/services/test_hook_service.rb

10 lines
199 B
Ruby
Raw Normal View History

2014-09-02 18:07:02 +05:30
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