CommandRunner.coffee 366 B

1234567891011
  1. Settings = require "settings-sharelatex"
  2. logger = require "logger-sharelatex"
  3. if Settings.clsi?.dockerRunner == true
  4. commandRunnerPath = "./DockerRunner"
  5. else
  6. commandRunnerPath = "./LocalCommandRunner"
  7. logger.info commandRunnerPath:commandRunnerPath, "selecting command runner for clsi"
  8. CommandRunner = require(commandRunnerPath)
  9. module.exports = CommandRunner