diff options
author | Valery Sizov <valery@gitlab.com> | 2015-02-03 01:26:29 +0300 |
---|---|---|
committer | Valery Sizov <valery@gitlab.com> | 2015-02-05 23:50:34 +0300 |
commit | 18231b0bb353fffa77b492e4b04fa61c9b3a25bb (patch) | |
tree | 6f00378c2d998382edae9752866be1a44b50ca03 /app | |
parent | 7ddba92a394b5e5fd67eda50b6ee25b38e53e7b9 (diff) |
GitLab.com integration: refactoring
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/importers/githubs_controller.rb | 4 | ||||
-rw-r--r-- | app/workers/repository_import_worker.rb | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/app/controllers/importers/githubs_controller.rb b/app/controllers/importers/githubs_controller.rb index 5bb64c4a6ce..b3d42e32dfa 100644 --- a/app/controllers/importers/githubs_controller.rb +++ b/app/controllers/importers/githubs_controller.rb @@ -47,13 +47,13 @@ class Importers::GithubsController < ApplicationController namespace.add_owner(current_user) end - @project = Gitlab::Github::ProjectCreator.new(repo, namespace, current_user).execute + @project = Gitlab::GithubImport::ProjectCreator.new(repo, namespace, current_user).execute end private def client - @client ||= Gitlab::Github::Client.new.client + @client ||= Gitlab::GithubImport::Client.new.client end def octo_client diff --git a/app/workers/repository_import_worker.rb b/app/workers/repository_import_worker.rb index 1ceea7ff07f..3fb41a528c2 100644 --- a/app/workers/repository_import_worker.rb +++ b/app/workers/repository_import_worker.rb @@ -11,7 +11,7 @@ class RepositoryImportWorker project.import_url) if project.import_type == 'github' - result_of_data_import = Gitlab::Github::Importer.new(project).execute + result_of_data_import = Gitlab::GithubImport::Importer.new(project).execute elsif project.import_type == 'gitlab' result_of_data_import = Gitlab::GitlabImport::Importer.new(project).execute else |