Files
danbooru/app/logical/storage_manager/null.rb
evazion a7dc05ce63 Enable frozen string literals.
Make all string literals immutable by default.
2021-12-14 21:33:27 -06:00

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