BigW Consortium Gitlab

uploads_restorer.rb 299 Bytes
Newer Older
1 2 3
module Gitlab
  module ImportExport
    class UploadsRestorer < UploadsSaver
4
      def restore
5 6 7 8 9 10 11 12 13 14
        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