Class: Backup::Uploads

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

Instance Attribute Summary

Attributes inherited from Files

#app_files_dir, #backup_tarball, #files_parent_dir, #name

Instance Method Summary collapse

Methods inherited from Files

#backup_existing_files_dir, #dump, #restore, #run_pipeline!

Constructor Details

#initializeUploads


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

def initialize
  super('uploads', Rails.root.join('public/uploads'))
end

Instance Method Details

#create_files_dirObject


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

def create_files_dir
  Dir.mkdir(app_files_dir)
end