Quellcode durchsuchen

Fixed multiple repo handling

production
chess vor 3 Jahren
Ursprung
Commit
61270c91e2
1 geänderte Dateien mit 26 neuen und 0 gelöschten Zeilen
  1. 26
    0
      index.js

+ 26
- 0
index.js Datei anzeigen

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


Laden…
Abbrechen
Speichern