Verified Commit 63914067 authored by Zeger-Jan van de Weg's avatar Zeger-Jan van de Weg Committed by Zeger-Jan van de Weg

Add two more project templates

Related to !13108. Mostly this is just running the rake task and
changing the task a bit to catch cases like the project already existing
or so. The rake task moves archives to the vendor/project_template
directory, which are checked in too.
parent 4a2a6d52
Pipeline #10878826 passed with stages
in 73 minutes and 43 seconds
......@@ -25,7 +25,9 @@ module Gitlab
TEMPLATES_TABLE = ['rails', 'Ruby on Rails')'rails', 'Ruby on Rails'),'spring', 'Spring'),'express', 'NodeJS Express')
class << self
......@@ -21,13 +21,18 @@ namespace :gitlab do
params = {
import_url: template.clone_url,
path: template.title,
skip_wiki: true
puts "Creating project for #{}"
puts "Creating project for #{template.title}"
project =, params).execute
unless project.persisted?
puts project.errors.messages
loop do
if project.finished?
puts "Import finished for #{}"
......@@ -4,7 +4,9 @@ describe Gitlab::ProjectTemplate do
describe '.all' do
it 'returns a all templates' do
expected = ['rails', 'Ruby on Rails')'rails', 'Ruby on Rails'),'spring', 'Spring'),'express', 'NodeJS Express')
expect(described_class.all).to be_an(Array)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment