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

7 lines
181 B
Ruby
Raw Normal View History

2014-09-02 18:07:02 +05:30
class TestHookService
def execute(hook, current_user)
2016-09-13 17:45:13 +05:30
data = Gitlab::DataBuilder::Push.build_sample(hook.project, current_user)
2015-09-11 14:41:01 +05:30
hook.execute(data, 'push_hooks')
2014-09-02 18:07:02 +05:30
end
end