summaryrefslogtreecommitdiff
path: root/app/workers/cluster_install_app_worker.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/workers/cluster_install_app_worker.rb')
-rw-r--r--app/workers/cluster_install_app_worker.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/app/workers/cluster_install_app_worker.rb b/app/workers/cluster_install_app_worker.rb
new file mode 100644
index 00000000000..899aed904e4
--- /dev/null
+++ b/app/workers/cluster_install_app_worker.rb
@@ -0,0 +1,11 @@
+class ClusterInstallAppWorker
+ include Sidekiq::Worker
+ include ClusterQueue
+ include ClusterApplications
+
+ def perform(app_name, app_id)
+ find_application(app_name, app_id) do |app|
+ Clusters::Applications::InstallService.new(app).execute
+ end
+ end
+end