gitlabhq/app/contexts/test_hook_context.rb

8 lines
191 B
Ruby
Raw Normal View History

2012-07-31 07:32:49 +02:00
class TestHookContext < BaseContext
def execute
hook = project.hooks.find(params[:id])
2013-02-26 22:04:14 +01:00
data = GitPushService.new.sample_data(project, current_user)
2012-07-31 07:32:49 +02:00
hook.execute(data)
end
end