2018-09-26 03:45:43 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-03-19 16:11:12 +00:00
|
|
|
class Projects::DeployTokensController < Projects::ApplicationController
|
|
|
|
before_action :authorize_admin_project!
|
|
|
|
|
2020-10-08 18:08:32 +00:00
|
|
|
feature_category :continuous_delivery
|
2022-04-29 12:10:13 +00:00
|
|
|
urgency :low
|
2020-10-08 18:08:32 +00:00
|
|
|
|
2018-03-19 16:11:12 +00:00
|
|
|
def revoke
|
|
|
|
@token = @project.deploy_tokens.find(params[:id])
|
|
|
|
@token.revoke!
|
|
|
|
|
2020-04-23 00:09:41 +00:00
|
|
|
redirect_to project_settings_repository_path(project, anchor: 'js-deploy-tokens')
|
2018-03-19 16:11:12 +00:00
|
|
|
end
|
|
|
|
end
|
2022-03-07 03:18:52 +00:00
|
|
|
|
|
|
|
Projects::DeployTokensController.prepend_mod
|