backups: add stub backup service.

This commit is contained in:
evazion
2017-05-05 22:18:28 -05:00
parent b6e1958917
commit 30a1f204e9
4 changed files with 34 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
class BackupService
def backup(file_path, options = {})
raise NotImplementedError.new("#{self.class}.backup not implemented")
end
end
+5
View File
@@ -0,0 +1,5 @@
class NullBackupService
def backup(file_path, options = {})
# do nothing
end
end