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

packages.rb « tasks « backup « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a85a3e8ba6c20e03407370be2bd0fbb09a1f4b08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# frozen_string_literal: true

module Backup
  module Tasks
    class Packages < Task
      def self.id = 'packages'

      def human_name = _('packages')

      def destination_path = 'packages.tar.gz'

      def target
        excludes = ['tmp']

        ::Backup::Targets::Files.new(progress, app_files_dir, options: options, excludes: excludes)
      end

      private

      def app_files_dir
        Settings.packages.storage_path
      end
    end
  end
end