mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-17 00:26:07 +10:00
10 lines
199 B
Ruby
10 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
|