2014-01-15 07:38:50 -05:00
|
|
|
class TestHookService
|
|
|
|
def execute(hook, current_user)
|
|
|
|
data = GitPushService.new.sample_data(hook.project, current_user)
|
|
|
|
hook.execute(data)
|
2014-07-29 05:49:46 -04:00
|
|
|
true
|
|
|
|
rescue SocketError
|
|
|
|
false
|
2014-01-15 07:38:50 -05:00
|
|
|
end
|
|
|
|
end
|