-
- Downloads
Adds group ClustersController create actions
Re=uses the shared concern CreatesCluster which we previously extracted from Projects::ClustersController Extracts creation of cluster to controller concern Extracted from `Projects::ClustersController#new`, `#create_gcp`, `#create_user` into new common module, with shared views and shared examples. This allows Groups::ClustersController to share most of the code.
Showing
- app/controllers/concerns/creates_cluster.rb 6 additions, 0 deletionsapp/controllers/concerns/creates_cluster.rb
- app/controllers/groups/clusters_controller.rb 20 additions, 0 deletionsapp/controllers/groups/clusters_controller.rb
- app/services/clusters/create_service.rb 12 additions, 3 deletionsapp/services/clusters/create_service.rb
- app/views/shared/clusters/gcp/_form.html.haml 2 additions, 0 deletionsapp/views/shared/clusters/gcp/_form.html.haml
- app/views/shared/clusters/user/_form.html.haml 2 additions, 0 deletionsapp/views/shared/clusters/user/_form.html.haml
- config/routes/group.rb 7 additions, 0 deletionsconfig/routes/group.rb
- spec/controllers/groups/clusters_controller_spec.rb 119 additions, 0 deletionsspec/controllers/groups/clusters_controller_spec.rb
- spec/services/clusters/create_service_spec.rb 16 additions, 0 deletionsspec/services/clusters/create_service_spec.rb
- spec/support/shared_examples/controllers/clusters_shared_examples.rb 10 additions, 0 deletions...t/shared_examples/controllers/clusters_shared_examples.rb
Please register or sign in to comment