blob: ce13942c5d723f6bac714ccad8bdad589f458fe5 (
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 = {})
@shared = Gitlab::ImportExport::Shared.new(relative_path: project.path_with_namespace)
save_project_tree
bundle_repo
save_all
end
private
def save_project_tree
Gitlab::ImportExport::ProjectTreeSaver.new(project: project, shared: @shared).save
end
def bundle_repo
Gitlab::ImportExport::RepoBundler.new(project: project, shared: @shared).bundle
end
def save_all
Gitlab::ImportExport::Saver.save(storage_path: @shared.export_path)
end
end
end
end
|