summaryrefslogtreecommitdiff
path: root/app/workers/cluster_provision_worker.rb
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2017-10-03 23:24:32 +0200
committerKamil Trzcinski <ayufan@ayufan.eu>2017-10-03 23:24:32 +0200
commite8e2a2103a806873f338da4b1de21a3df9c65502 (patch)
tree1317642dbca4fc86908ee38cf155d35ce61fa9e9 /app/workers/cluster_provision_worker.rb
parent25a1ef69333280201bf745192e178f5a8e3f9165 (diff)
downloadgitlab-ce-e8e2a2103a806873f338da4b1de21a3df9c65502.tar.gz
Rename to ClusterProvisionWorker and CreateGkeClusterService.new.execute
Diffstat (limited to 'app/workers/cluster_provision_worker.rb')
-rw-r--r--app/workers/cluster_provision_worker.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/workers/cluster_provision_worker.rb b/app/workers/cluster_provision_worker.rb
new file mode 100644
index 00000000000..63300b58a25
--- /dev/null
+++ b/app/workers/cluster_provision_worker.rb
@@ -0,0 +1,10 @@
+class ClusterProvisionWorker
+ include Sidekiq::Worker
+ include ClusterQueue
+
+ def perform(cluster_id)
+ Gcp::Cluster.find_by_id(cluster_id).try do |cluster|
+ Ci::ProvisionClusterService.new.execute(cluster)
+ end
+ end
+end