gitlabhq/app/contexts/test_hook_context.rb

8 lines
191 B
Ruby
Raw Normal View History

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