debian-mirror-gitlab/lib/backup/pages.rb

22 lines
475 B
Ruby
Raw Normal View History

2018-12-05 23:21:45 +05:30
# frozen_string_literal: true
2017-08-17 22:00:37 +05:30
module Backup
2021-01-03 14:25:43 +05:30
class Pages < Backup::Files
2021-11-11 11:23:49 +05:30
# 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'
2018-11-08 19:23:39 +05:30
attr_reader :progress
def initialize(progress)
@progress = progress
2021-11-11 11:23:49 +05:30
super('pages', Gitlab.config.pages.path, excludes: [LEGACY_PAGES_TMP_PATH])
2017-08-17 22:00:37 +05:30
end
2022-04-04 11:22:00 +05:30
def human_name
_('pages')
end
2017-08-17 22:00:37 +05:30
end
end