2018-06-27 03:23:28 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-11-02 06:14:10 -04:00
|
|
|
class ClusterInstallAppWorker
|
2017-11-28 11:08:30 -05:00
|
|
|
include ApplicationWorker
|
2017-11-02 06:14:10 -04:00
|
|
|
include ClusterQueue
|
2017-11-02 13:55:02 -04:00
|
|
|
include ClusterApplications
|
2017-11-02 06:14:10 -04:00
|
|
|
|
|
|
|
def perform(app_name, app_id)
|
2017-11-02 13:55:02 -04:00
|
|
|
find_application(app_name, app_id) do |app|
|
|
|
|
Clusters::Applications::InstallService.new(app).execute
|
2017-11-02 06:14:10 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|