overleaf/services/filestore/app/coffee/PersistorManager.coffee

11 lines
370 B
CoffeeScript
Raw Normal View History

settings = require("settings-sharelatex")
logger = require("logger-sharelatex")
S3PersistorManager = require("./S3PersistorManager")
logger.log backend:settings.persistorManager, "Loading backend"
module.exports = switch settings.persistorManager
when "s3",null
S3PersistorManager
else
throw new Error( "Unknown filestore backend: #{settings.persistorManager}" )