2020-02-25 18:09:02 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Gitlab
|
|
|
|
module ImportExport
|
|
|
|
module AfterExportStrategies
|
|
|
|
class MoveFileStrategy < BaseAfterExportStrategy
|
|
|
|
def initialize(archive_path:)
|
2022-08-11 06:12:18 +00:00
|
|
|
super
|
2020-02-25 18:09:02 +00:00
|
|
|
@archive_path = archive_path
|
|
|
|
end
|
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
def strategy_execute
|
|
|
|
FileUtils.mv(project.export_file.path, @archive_path)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|