Skip to content

Commit 18231b0

Browse files
committed
GitLab.com integration: refactoring
1 parent 7ddba92 commit 18231b0

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

app/controllers/importers/githubs_controller.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@ def create
4747
namespace.add_owner(current_user)
4848
end
4949

50-
@project = Gitlab::Github::ProjectCreator.new(repo, namespace, current_user).execute
50+
@project = Gitlab::GithubImport::ProjectCreator.new(repo, namespace, current_user).execute
5151
end
5252

5353
private
5454

5555
def client
56-
@client ||= Gitlab::Github::Client.new.client
56+
@client ||= Gitlab::GithubImport::Client.new.client
5757
end
5858

5959
def octo_client

app/workers/repository_import_worker.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def perform(project_id)
1111
project.import_url)
1212

1313
if project.import_type == 'github'
14-
result_of_data_import = Gitlab::Github::Importer.new(project).execute
14+
result_of_data_import = Gitlab::GithubImport::Importer.new(project).execute
1515
elsif project.import_type == 'gitlab'
1616
result_of_data_import = Gitlab::GitlabImport::Importer.new(project).execute
1717
else

lib/gitlab/github/client.rb renamed to lib/gitlab/github_import/client.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module Gitlab
2-
module Github
2+
module GithubImport
33
class Client
44
attr_reader :client
55

lib/gitlab/github/importer.rb renamed to lib/gitlab/github_import/importer.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module Gitlab
2-
module Github
2+
module GithubImport
33
class Importer
44
attr_reader :project
55

lib/gitlab/github/project_creator.rb renamed to lib/gitlab/github_import/project_creator.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module Gitlab
2-
module Github
2+
module GithubImport
33
class ProjectCreator
44
attr_reader :repo, :namespace, :current_user
55

0 commit comments

Comments
 (0)