Sha256: efe856c17173d756b021d35d09b326aefbdcb2518406e748f39f0d99810c2ae6
Contents?: true
Size: 677 Bytes
Versions: 6
Compression:
Stored size: 677 Bytes
Contents
require 'backup/connection/s3' module Backup module Record class S3 < Backup::Record::Base def load_specific_settings(adapter) self.bucket = adapter.procedure.get_storage_configuration.attributes['bucket'] end private def self.destroy_backups(procedure, backups) s3 = Backup::Connection::S3.new s3.static_initialize(procedure) backups.each do |backup| puts "\nDestroying backup \"#{backup.filename}\" from bucket \"#{backup.bucket}\"." s3.destroy(backup.filename, backup.bucket) backup.destroy end end end end end
Version data entries
6 entries across 6 versions & 2 rubygems