Class: Backup::Storage::S3

Inherits:
Object
  • Object
show all
Defined in:
lib/backup/storage/s3.rb

Instance Method Summary collapse

Constructor Details

#initialize(adapter) ⇒ S3

Stores the backup file on the remote server using S3



6
7
8
9
10
# File 'lib/backup/storage/s3.rb', line 6

def initialize(adapter)
  s3 = Backup::Connection::S3.new(adapter)
  s3.connect
  s3.store
end