backups: add stub backup service.
This commit is contained in:
5
app/logical/backup_service.rb
Normal file
5
app/logical/backup_service.rb
Normal file
@@ -0,0 +1,5 @@
|
||||
class BackupService
|
||||
def backup(file_path, options = {})
|
||||
raise NotImplementedError.new("#{self.class}.backup not implemented")
|
||||
end
|
||||
end
|
||||
5
app/logical/null_backup_service.rb
Normal file
5
app/logical/null_backup_service.rb
Normal file
@@ -0,0 +1,5 @@
|
||||
class NullBackupService
|
||||
def backup(file_path, options = {})
|
||||
# do nothing
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user