Class: Backup::Storage::S3
Instance Method Summary collapse
-
#initialize(adapter) ⇒ S3
constructor
Stores the backup file on the remote server using S3.
Methods included from CommandHelper
Constructor Details
#initialize(adapter) ⇒ S3
Stores the backup file on the remote server using S3
8 9 10 11 12 13 |
# File 'lib/backup/storage/s3.rb', line 8 def initialize(adapter) s3 = Backup::Connection::S3.new(adapter) s3.connect log("Saving '#{s3.final_file}' to s3 bucket '#{s3.s3_bucket}'") s3.store end |