Wraps a set of mirror services and provides a single ActiveStorage::Service object that will all have
the files uploaded to them. A primary service is designated to
answer calls to download, exists?, and
url.
Methods
- D
- N
- U
Attributes
| [R] | mirrors | |
| [R] | primary |
Class Public methods
new(primary:, mirrors:)
Link
Instance Public methods
delete(key)
Link
Delete the file at the key on all services.
delete_prefixed(prefix)
Link
Delete files at keys starting with the prefix on all services.
upload(key, io, checksum: nil, **options)
Link
Upload the io to the key specified to all
services. If a checksum is provided, all services will ensure
a match when the upload has completed or raise an ActiveStorage::IntegrityError.