debian-mirror-gitlab/app/controllers/projects/service_hook_logs_controller.rb
2020-01-01 13:55:28 +05:30

20 lines
413 B
Ruby

# frozen_string_literal: true
class Projects::ServiceHookLogsController < Projects::HookLogsController
before_action :service, only: [:show, :retry]
def retry
execute_hook
redirect_to edit_project_service_path(@project, @service)
end
private
def hook
@hook ||= service.service_hook
end
def service
@service ||= @project.find_or_initialize_service(params[:service_id])
end
end