Class: Backup::Uploads

Inherits:
Files
  • Object
show all
Defined in:
lib/backup/uploads.rb

Constant Summary

Constants inherited from Files

Files::DEFAULT_EXCLUDE

Instance Attribute Summary collapse

Attributes inherited from Files

#app_files_dir, #backup_tarball, #excludes, #files_parent_dir, #name

Instance Method Summary collapse

Methods inherited from Files

#backup_existing_files_dir, #dump, #exclude_dirs, #restore, #run_pipeline!, #tar

Methods included from Helper

#access_denied_error, #gzip_cmd, #resource_busy_error

Constructor Details

#initialize(progress) ⇒ Uploads

Returns a new instance of Uploads.


9
10
11
12
13
# File 'lib/backup/uploads.rb', line 9

def initialize(progress)
  @progress = progress

  super('uploads', File.join(Gitlab.config.uploads.storage_path, "uploads"), excludes: ['tmp'])
end

Instance Attribute Details

#progressObject (readonly)

Returns the value of attribute progress


7
8
9
# File 'lib/backup/uploads.rb', line 7

def progress
  @progress
end