2019-02-07 16:40:55 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class ClusterUpgradeAppWorker
|
|
|
|
include ApplicationWorker
|
|
|
|
include ClusterQueue
|
|
|
|
include ClusterApplications
|
|
|
|
|
2019-10-30 11:14:17 -04:00
|
|
|
worker_has_external_dependencies!
|
|
|
|
|
2019-02-07 16:40:55 -05:00
|
|
|
def perform(app_name, app_id)
|
|
|
|
find_application(app_name, app_id) do |app|
|
|
|
|
Clusters::Applications::UpgradeService.new(app).execute
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|