Welcome to mirror list, hosted at ThFree Co, Russian Federation.

revoke_service.rb « deploy_tokens « groups « services « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: cf91d3b27fad6f6299f39fa5c6934019b98e28a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# 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