diff options
author | Yorick Peterse <yorickpeterse@gmail.com> | 2017-10-18 21:46:05 +0200 |
---|---|---|
committer | Yorick Peterse <yorickpeterse@gmail.com> | 2017-11-07 23:25:03 +0100 |
commit | 6e242e82237ad2cf362098f3f42f4a9dd1a4ad27 (patch) | |
tree | 415639ff14183a4914dac69fcc400806cb477525 /app | |
parent | 4dfe26cd8b6863b7e6c81f5c280cdafe9b6e17b6 (diff) | |
download | gitlab-ce-6e242e82237ad2cf362098f3f42f4a9dd1a4ad27.tar.gz |
Replace old GH importer with the parallel importergithub-importer-refactor
Diffstat (limited to 'app')
-rw-r--r-- | app/services/projects/import_service.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/services/projects/import_service.rb b/app/services/projects/import_service.rb index 20eee4fd439..c950da44aba 100644 --- a/app/services/projects/import_service.rb +++ b/app/services/projects/import_service.rb @@ -87,6 +87,10 @@ module Projects end end + def importer_class + Gitlab::ImportSources.importer(project.import_type) + end + def has_importer? Gitlab::ImportSources.importer_names.include?(project.import_type) end @@ -95,10 +99,6 @@ module Projects importer_class.new(project) end - def importer_class - Gitlab::ImportSources.importer(project.import_type) - end - def unknown_url? project.import_url == Project::UNKNOWN_IMPORT_URL end |