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

destroy_service.rb « keys « services « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 785cfa3a1d89be7c1afc81dee6e38bee58f71e8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
module Keys
  class DestroyService < ::Keys::BaseService
    def execute(key)
      key.destroy if destroy_possible?(key)
    end

    # overriden in EE::Keys::DestroyService
    def destroy_possible?(key)
      true
    end
  end
end