debian-mirror-gitlab/lib/gitlab/import_export/after_export_strategies/move_file_strategy.rb
2020-04-08 14:13:33 +05:30

20 lines
395 B
Ruby

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