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

14 lines
222 B
Ruby
Raw Normal View History

2015-11-26 14:37:03 +05:30
require 'backup/files'
2014-09-02 18:07:02 +05:30
module Backup
2015-11-26 14:37:03 +05:30
class Uploads < Files
2014-09-02 18:07:02 +05:30
def initialize
2015-11-26 14:37:03 +05:30
super('uploads', Rails.root.join('public/uploads'))
2014-09-02 18:07:02 +05:30
end
2015-11-26 14:37:03 +05:30
def create_files_dir
Dir.mkdir(app_files_dir)
2014-09-02 18:07:02 +05:30
end
end
end