gitlab-org--gitlab-foss/app/presenters/gcp/cluster_presenter.rb
2017-10-06 02:45:15 +09:00

9 lines
247 B
Ruby

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