Method: Backup::Storage::S3#initialize
- Defined in:
- lib/backup/storage/s3.rb
#initialize(model, storage_id = nil) ⇒ S3
Returns a new instance of S3.
72 73 74 75 76 77 78 79 80 81 82 83 84 |
# File 'lib/backup/storage/s3.rb', line 72 def initialize(model, storage_id = nil) super @chunk_size ||= 5 # MiB @max_retries ||= 10 @retry_waitsec ||= 30 @path ||= 'backups' @storage_class ||= :standard @path = @path.sub(/^\//, '') check_configuration end |