backups: add stub backup service.

This commit is contained in:
evazion
2017-05-05 21:45:14 -05:00
parent b6e1958917
commit 30a1f204e9
4 changed files with 34 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
class BackupService
def backup(file_path, options = {})
raise NotImplementedError.new("#{self.class}.backup not implemented")
end
end

View File

@@ -0,0 +1,5 @@
class NullBackupService
def backup(file_path, options = {})
# do nothing
end
end