summaryrefslogtreecommitdiff
path: root/lib/backup/pages.rb
blob: 393cf4108a13986cfbc2a4891f0c067b63d33dd5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

module Backup
  class Pages < Backup::Files
    # pages used to deploy tmp files to this path
    # if some of these files are still there, we don't need them in the backup
    LEGACY_PAGES_TMP_PATH = '@pages.tmp'

    attr_reader :progress

    def initialize(progress)
      @progress = progress

      super('pages', Gitlab.config.pages.path, excludes: [LEGACY_PAGES_TMP_PATH])
    end
  end
end