Class: Bard::Backup::S3Destination
- Inherits:
-
Destination
- Object
- Struct
- Destination
- Bard::Backup::S3Destination
- Defined in:
- lib/bard/backup/destination/s3_destination.rb
Instance Method Summary collapse
Methods inherited from Destination
Instance Method Details
#call ⇒ Object
9 10 11 12 |
# File 'lib/bard/backup/destination/s3_destination.rb', line 9 def call strategy.call(s3_dir, now) Deleter.new(s3_dir, now).call end |
#info ⇒ Object
18 19 20 |
# File 'lib/bard/backup/destination/s3_destination.rb', line 18 def info config.slice(:name, :type, :path, :region) end |
#s3_dir ⇒ Object
14 15 16 |
# File 'lib/bard/backup/destination/s3_destination.rb', line 14 def s3_dir @s3_dir ||= S3Dir.new(**config.slice(:endpoint, :path, :access_key_id, :secret_access_key, :region)) end |