Ver código fonte

Fixed multiple repo handling

pull/4/head
chess 3 anos atrás
pai
commit
61270c91e2
1 arquivos alterados com 26 adições e 0 exclusões
  1. 26
    0
      index.js

+ 26
- 0
index.js Ver arquivo

@@ -940,6 +940,27 @@ var op = {
console.log(serverPid)
kill(serverPid)
}
, 'model' : () => {
if (__isElevated) {
var tasks = [
() => {
var p = nodeShellExec('mklink', [ `${processedArgs._[2]}.json`
, `..\\..\\node_modules\\chess-server-lib\\common\\models\\${processedArgs._[2]}.json`], {
inherit: true, shell: true
, cwd : instanceroot + `/${selectedinstance.instanceName}-server/${selectedinstance}/models`
, env: process.env
}).catch((e) => { console.error(e) })
return p;
}
];
return any(tasks).then(() => {
fs.writeFileSync('run.done', 'success')
}).catch(() => {
fs.writeFileSync('run.done', 'error')
})
}
else return op['runas']()
}
, 'use' : () => {
// use a certain named instance.
// Eg :
@@ -1320,6 +1341,11 @@ var elxr = {
}
, getpulltask(def){

def = def || {
requiresElevation : true,
reqularRepos : gitRepos,
elevatedRepos : elevatedRunasRepos
}
console.log(`-------------------Processing pull for : ${def.repo} ${def.branch}`)
console.dir(def)


Carregando…
Cancelar
Salvar