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