-
- Downloads
There was an error fetching the commit references. Please try again later.
Allow projects to be started from a template
Started implementation for the first iteration of gitlab-org/gitlab-ce#32420. This will allow users to select a template to start with, instead of an empty repository in the project just created. Internally this is basically a small extension of the ImportExport GitLab projects we already support. We just import a certain import tar archive. This commits includes the first one: Ruby on Rails. In the future more will be added.
Showing
- app/assets/images/project_templates/rails.png 0 additions, 0 deletionsapp/assets/images/project_templates/rails.png
- app/controllers/import/gitlab_projects_controller.rb 1 addition, 9 deletionsapp/controllers/import/gitlab_projects_controller.rb
- app/controllers/projects_controller.rb 11 additions, 1 deletionapp/controllers/projects_controller.rb
- app/models/project.rb 1 addition, 0 deletionsapp/models/project.rb
- app/services/projects/create_from_template_service.rb 14 additions, 0 deletionsapp/services/projects/create_from_template_service.rb
- app/services/projects/gitlab_projects_importer_service.rb 33 additions, 0 deletionsapp/services/projects/gitlab_projects_importer_service.rb
- app/views/projects/_project_templates.html.haml 8 additions, 0 deletionsapp/views/projects/_project_templates.html.haml
- app/views/projects/new.html.haml 33 additions, 26 deletionsapp/views/projects/new.html.haml
- lib/gitlab/import_export.rb 3 additions, 1 deletionlib/gitlab/import_export.rb
- lib/gitlab/project_template.rb 39 additions, 0 deletionslib/gitlab/project_template.rb
- spec/features/projects_spec.rb 21 additions, 0 deletionsspec/features/projects_spec.rb
- spec/lib/gitlab/project_template_spec.rb 48 additions, 0 deletionsspec/lib/gitlab/project_template_spec.rb
- spec/services/projects/create_from_template_service_spec.rb 26 additions, 0 deletionsspec/services/projects/create_from_template_service_spec.rb
- vendor/project_templates/rails.tar.gz 0 additions, 0 deletionsvendor/project_templates/rails.tar.gz
4.12 KiB
lib/gitlab/project_template.rb
0 → 100644
spec/lib/gitlab/project_template_spec.rb
0 → 100644
vendor/project_templates/rails.tar.gz
0 → 100644
File added