diff options
author | Thong Kuah <tkuah@gitlab.com> | 2018-10-23 06:51:29 +0300 |
---|---|---|
committer | Thong Kuah <tkuah@gitlab.com> | 2018-11-08 13:14:06 +0300 |
commit | 54e8ff0f218371262d85989b3e08fd1a22958717 (patch) | |
tree | 5927446b7be5f1b0cb298d215dba737a5f630c23 /app/presenters/group_clusterable_presenter.rb | |
parent | 76991929855f2a9f801fa16f80ccebad28853dd8 (diff) |
Extend clusters_controller for group type clusters
- Add pages javascripts to intialize clusters for group pages
- Move specs asserting gcp specific validations from controller into
UpdateService spec
- Also teach Clusters::ApplicationController about groups
Diffstat (limited to 'app/presenters/group_clusterable_presenter.rb')
-rw-r--r-- | app/presenters/group_clusterable_presenter.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/app/presenters/group_clusterable_presenter.rb b/app/presenters/group_clusterable_presenter.rb new file mode 100644 index 00000000000..22d3ba9db35 --- /dev/null +++ b/app/presenters/group_clusterable_presenter.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +class GroupClusterablePresenter < ClusterablePresenter + def cluster_status_cluster_path(cluster, params = {}) + cluster_status_group_cluster_path(clusterable, cluster, params) + end + + def install_applications_cluster_path(cluster, application) + install_applications_group_cluster_path(clusterable, cluster, application) + end + + def cluster_path(cluster, params = {}) + group_cluster_path(clusterable, cluster, params) + end +end |