storage manager: refactor base_dir option.
Fix it so the `base_dir` option is only required by subclasses that actually use it. The StorageManager::Mirror class doesn't use it.
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
# 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
|
||||
def initialize
|
||||
super(base_url: nil)
|
||||
end
|
||||
|
||||
def store(io, path)
|
||||
|
||||
Reference in New Issue
Block a user