Module: Bard::Backup
- Defined in:
- lib/bard/backup.rb,
lib/bard/backup/s3_dir.rb,
lib/bard/backup/deleter.rb,
lib/bard/backup/version.rb,
lib/bard/backup/local_backhoe.rb
Defined Under Namespace
Classes: Deleter, LocalBackhoe, S3Dir
Constant Summary collapse
- VERSION =
"0.5.0"
Class Method Summary collapse
Class Method Details
.call(s3_path, access_key:, secret_key:, region: "us-west-2", now: Time.now.utc, strategy: LocalBackhoe) ⇒ Object
7 8 9 10 11 |
# File 'lib/bard/backup.rb', line 7 def self.call s3_path, access_key:, secret_key:, region: "us-west-2", now: Time.now.utc, strategy: LocalBackhoe s3_dir = S3Dir.new(path: s3_path, access_key:, secret_key:, region:) strategy.call(s3_dir, now) Deleter.new(s3_dir, now).call end |