gitlab-org--gitlab-foss/lib/gitlab/import_export/after_export_strategies/move_file_strategy.rb

21 lines
411 B
Ruby

# frozen_string_literal: true
module Gitlab
module ImportExport
module AfterExportStrategies
class MoveFileStrategy < BaseAfterExportStrategy
def initialize(archive_path:)
super
@archive_path = archive_path
end
private
def strategy_execute
FileUtils.mv(project.export_file.path, @archive_path)
end
end
end
end
end