Sfoglia il codice sorgente

Fixed multiple repo handling

pull/4/head
chess 3 anni fa
parent
commit
61270c91e2
1 ha cambiato i file con 26 aggiunte e 0 eliminazioni
  1. 26
    0
      index.js

+ 26
- 0
index.js Vedi File

@@ -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)


Loading…
Annulla
Salva