chimera-framework
Version:
Language agnostic framework for stand-alone and distributed computing
14 lines (12 loc) • 346 B
JavaScript
require('cache-require-paths')
const core = require('../core.js')
module.exports = (ins, vars, callback) => {
let webState = ins[0]
let hook = webState.config.localStartupHook
let initCwd = vars._init_cwd
if (hook) {
return core.executeChain(initCwd + hook, [webState], callback)
}
return callback(null, webState)
}