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:
authorKamil Trzcinski <ayufan@ayufan.eu>2017-11-02 17:10:46 +0300
committerKamil Trzcinski <ayufan@ayufan.eu>2017-11-02 17:10:46 +0300
commit64be8d70ae20928df351e495a3442bb6036bc3e7 (patch)
tree6eb01452391ccfa45d1dbaeae261d118d323bcc1 /app/workers
parent461c385ebca7ecb52d0b385fd61c856eb395481a (diff)
Improve backend structure of data
Diffstat (limited to 'app/workers')
-rw-r--r--app/workers/concerns/cluster_app.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/workers/concerns/cluster_app.rb b/app/workers/concerns/cluster_app.rb
index 2170f8be6f6..a0202901f15 100644
--- a/app/workers/concerns/cluster_app.rb
+++ b/app/workers/concerns/cluster_app.rb
@@ -3,8 +3,9 @@ module ClusterApp
included do
def find_app(app_name, id)
- app = Clusters::Kubernetes.app(app_name).find(id)
- yield(app) if block_given?
+ Clusters::Applications.const_get(app_name.classify).find(id).try do |app|
+ yield(app) if block_given?
+ end
end
end
end