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