overleaf/services/clsi/app/coffee/CommandRunner.coffee

12 lines
366 B
CoffeeScript
Raw Normal View History

Settings = require "settings-sharelatex"
2014-02-12 12:27:43 -05:00
logger = require "logger-sharelatex"
if Settings.clsi?.dockerRunner == true
commandRunnerPath = "./DockerRunner"
else
commandRunnerPath = "./LocalCommandRunner"
logger.info commandRunnerPath:commandRunnerPath, "selecting command runner for clsi"
CommandRunner = require(commandRunnerPath)
module.exports = CommandRunner