debian-mirror-gitlab/app/services/groups/deploy_tokens/revoke_service.rb
2022-05-07 20:08:51 +05:30

16 lines
306 B
Ruby

# frozen_string_literal: true
module Groups
module DeployTokens
class RevokeService < BaseService
attr_accessor :token
def execute
@token = group.deploy_tokens.find(params[:id])
@token.revoke!
end
end
end
end
Groups::DeployTokens::RevokeService.prepend_mod