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
|
2022-03-09 21:07:04 +00:00
|
|
|
Groups::DeployTokens::RevokeService.new(@group, current_user, params).execute
|
2020-02-28 18:09:07 +00:00
|
|
|
|
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
|