Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoão Cunha <j.a.cunha@gmail.com>2019-03-05 18:21:29 +0300
committerJoão Cunha <j.a.cunha@gmail.com>2019-03-05 18:21:29 +0300
commit3bdff7aadfc68222086518a365496fb22357cb9c (patch)
tree9a87afeba6f47e279059c6c37dfa758c7768cd4d /app/workers/cluster_patch_app_worker.rb
parent5e6e1dd54ae80f6725d75da01eb024d40aa47167 (diff)
Rename ClusterUpdateAppWorker to ClusterPatchAppWorker
- This is to avoid colision with EE ClusterUpdateAppWorker
Diffstat (limited to 'app/workers/cluster_patch_app_worker.rb')
-rw-r--r--app/workers/cluster_patch_app_worker.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/app/workers/cluster_patch_app_worker.rb b/app/workers/cluster_patch_app_worker.rb
new file mode 100644
index 00000000000..0549e81ed05
--- /dev/null
+++ b/app/workers/cluster_patch_app_worker.rb
@@ -0,0 +1,13 @@
+# frozen_string_literal: true
+
+class ClusterPatchAppWorker
+ include ApplicationWorker
+ include ClusterQueue
+ include ClusterApplications
+
+ def perform(app_name, app_id)
+ find_application(app_name, app_id) do |app|
+ Clusters::Applications::PatchService.new(app).execute
+ end
+ end
+end