8 lines
191 B
Ruby
8 lines
191 B
Ruby
class TestHookContext < BaseContext
|
|
def execute
|
|
hook = project.hooks.find(params[:id])
|
|
data = GitPushService.new.sample_data(project, current_user)
|
|
hook.execute(data)
|
|
end
|
|
end
|