2020-02-28 18:09:07 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class Groups::DeployTokensController < Groups::ApplicationController
|
2020-07-01 21:08:51 +00:00
|
|
|
before_action :authorize_destroy_deploy_token!
|
2020-02-28 18:09:07 +00:00
|
|
|
|
2020-10-06 12:08:38 +00:00
|
|
|
feature_category :continuous_delivery
|
|
|
|
|
2020-02-28 18:09:07 +00:00
|
|
|
def revoke
|
|
|
|
@token = @group.deploy_tokens.find(params[:id])
|
|
|
|
@token.revoke!
|
|
|
|
|
2020-04-21 15:21:10 +00:00
|
|
|
redirect_to group_settings_repository_path(@group, anchor: 'js-deploy-tokens')
|
2020-02-28 18:09:07 +00:00
|
|
|
end
|
|
|
|
end
|