blob: b252692cd77cc60e6832e37e207a9d4938f516ea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
module Projects
module ImportExport
class ExportService < BaseService
def execute(options = {})
@import_path = options[:import_path]
restore_project_tree
restore_repo(project_tree.project)
end
private
def restore_project_tree
project_tree.restore
end
def project_tree
@project_tree ||= Gitlab::ImportExport::ProjectTreeRestorer.new(path: @import_path, user: @current_user)
end
def restore_repo(project)
Gitlab::ImportExport::RepoRestorer.new(path: @import_path, project: project).restore
end
end
end
end
|