diff options
author | Z.J. van de Weg <git@zjvandeweg.nl> | 2017-08-07 14:21:28 +0200 |
---|---|---|
committer | Z.J. van de Weg <git@zjvandeweg.nl> | 2017-08-07 15:09:14 +0200 |
commit | 2e6aa4f25e14fa7e57ea9f271e302e291ecc9e05 (patch) | |
tree | 4ff6c04b4871ec10ebe563c1d055a77ac589c495 /lib/tasks | |
parent | aae947cb1c1252a642e0464c61132ec2e965eb80 (diff) | |
download | gitlab-ce-2e6aa4f25e14fa7e57ea9f271e302e291ecc9e05.tar.gz |
After merge cleanup
Diffstat (limited to 'lib/tasks')
-rw-r--r-- | lib/tasks/gitlab/update_templates.rake | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/tasks/gitlab/update_templates.rake b/lib/tasks/gitlab/update_templates.rake index 26f6276e84b..17199c1871d 100644 --- a/lib/tasks/gitlab/update_templates.rake +++ b/lib/tasks/gitlab/update_templates.rake @@ -24,16 +24,17 @@ namespace :gitlab do path: template.title, skip_wiki: true } + puts "Creating project for #{template.name}" - project = Projects::CreateService.new(admin, project).execute + project = Projects::CreateService.new(admin, params).execute loop do - if project.import_status == "finished" + if project.finished? puts "Import finished for #{template.name}" break end - if project.import_status == "failed" + if project.failed? puts "Failed to import from #{project_params[:import_url]}".red exit(1) end |