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:
authorShinya Maeda <shinya@gitlab.com>2017-10-05 20:45:15 +0300
committerShinya Maeda <shinya@gitlab.com>2017-10-05 20:45:15 +0300
commit6712762b9d6e0391b1a38ca17cc3d982a336bbf9 (patch)
treebbb3b008409a18aca0bbd86480ac4b52eb33668e /app/presenters
parentd27b113b49c90ba7d184f0d7965b63e32d260ebf (diff)
Add ClusterPresenter. Fix Static Analysys.
Diffstat (limited to 'app/presenters')
-rw-r--r--app/presenters/gcp/cluster_presenter.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/presenters/gcp/cluster_presenter.rb b/app/presenters/gcp/cluster_presenter.rb
new file mode 100644
index 00000000000..f7908f92a37
--- /dev/null
+++ b/app/presenters/gcp/cluster_presenter.rb
@@ -0,0 +1,9 @@
+module Gcp
+ class ClusterPresenter < Gitlab::View::Presenter::Delegated
+ presents :cluster
+
+ def gke_cluster_url
+ "https://console.cloud.google.com/kubernetes/clusters/details/#{gcp_cluster_zone}/#{gcp_cluster_name}"
+ end
+ end
+end