summaryrefslogtreecommitdiff
path: root/app/workers/clusters/applications/uninstall_worker.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/workers/clusters/applications/uninstall_worker.rb')
-rw-r--r--app/workers/clusters/applications/uninstall_worker.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/app/workers/clusters/applications/uninstall_worker.rb b/app/workers/clusters/applications/uninstall_worker.rb
new file mode 100644
index 00000000000..85e8ecc4ad5
--- /dev/null
+++ b/app/workers/clusters/applications/uninstall_worker.rb
@@ -0,0 +1,17 @@
+# frozen_string_literal: true
+
+module Clusters
+ module Applications
+ class UninstallWorker
+ include ApplicationWorker
+ include ClusterQueue
+ include ClusterApplications
+
+ def perform(app_name, app_id)
+ find_application(app_name, app_id) do |app|
+ Clusters::Applications::UninstallService.new(app).execute
+ end
+ end
+ end
+ end
+end