mirror of
https://github.com/gitlabhq/gitlabhq.git
synced 2025-08-20 16:30:26 +00:00
26 lines
464 B
Ruby
26 lines
464 B
Ruby
# 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, storage_path, options: options, excludes: excludes)
|
|
end
|
|
|
|
private
|
|
|
|
def storage_path
|
|
Settings.packages.storage_path
|
|
end
|
|
end
|
|
end
|
|
end
|