2017-11-02 10:14:10 +00:00
|
|
|
class ClusterInstallAppWorker
|
|
|
|
include Sidekiq::Worker
|
|
|
|
include ClusterQueue
|
2017-11-02 17:55:02 +00:00
|
|
|
include ClusterApplications
|
2017-11-02 10:14:10 +00:00
|
|
|
|
|
|
|
def perform(app_name, app_id)
|
2017-11-02 17:55:02 +00:00
|
|
|
find_application(app_name, app_id) do |app|
|
|
|
|
Clusters::Applications::InstallService.new(app).execute
|
2017-11-02 10:14:10 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|