22 lines
340 B
Ruby
22 lines
340 B
Ruby
# frozen_string_literal: true
|
|
|
|
# A null StorageManager that doesn't store files at all. Used for testing or
|
|
# disabling backups.
|
|
class StorageManager::Null < StorageManager
|
|
def initialize
|
|
super(base_url: nil)
|
|
end
|
|
|
|
def store(io, path)
|
|
# no-op
|
|
end
|
|
|
|
def delete(path)
|
|
# no-op
|
|
end
|
|
|
|
def open(path)
|
|
# no-op
|
|
end
|
|
end
|