debian-mirror-gitlab/app/services/test_hook_service.rb
2016-09-13 17:45:13 +05:30

6 lines
181 B
Ruby

class TestHookService
def execute(hook, current_user)
data = Gitlab::DataBuilder::Push.build_sample(hook.project, current_user)
hook.execute(data, 'push_hooks')
end
end