summaryrefslogtreecommitdiff
path: root/app/services/clusters/applications/schedule_installation_service.rb
blob: 4ead4f619c80ed51552e3113297fb78c65c2a08e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

module Clusters
  module Applications
    class ScheduleInstallationService < ::BaseService
      def execute(application)
        application.make_scheduled!

        ClusterInstallAppWorker.perform_async(application.name, application.id)
      end
    end
  end
end