Welcome to mirror list, hosted at ThFree Co, Russian Federation.

move_file_strategy.rb « after_export_strategies « import_export « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: bddbe7862cb87fe9e4d2575f9672269a90e2bb77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# 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