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

uploads_restorer.rb « import_export « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: df19354b76ea0c2e9eb33e236bda25d1d4ab8c05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
module Gitlab
  module ImportExport
    class UploadsRestorer < UploadsSaver
      def restore
        return true unless File.directory?(uploads_export_path)

        copy_files(uploads_export_path, uploads_path)
      rescue => e
        @shared.error(e)
        false
      end
    end
  end
end