summaryrefslogtreecommitdiff
path: root/app/services/clusters/applications/update_service.rb
blob: 0fa937da86514f23cf178d636a2b0aa366b225ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

module Clusters
  module Applications
    class UpdateService < Clusters::Applications::BaseService
      private

      def worker_class(application)
        ClusterPatchAppWorker
      end

      def builder
        cluster.public_send(:"application_#{application_name}") # rubocop:disable GitlabSecurity/PublicSend
      end
    end
  end
end