|
|
|
|
|
|
|
|
|
|
|
|
|
|
console.log('Running exlr pull : ' + path.dirname(__dirname)) |
|
|
console.log('Running exlr pull : ' + path.dirname(__dirname)) |
|
|
|
|
|
|
|
|
if (!processedArgs.runas) gitRepos.map((def) => performPull(def, def.branch || 'master')) |
|
|
|
|
|
|
|
|
if (!processedArgs.runas) gitRepos.map((def) => { |
|
|
|
|
|
if (exludeMergeRepos[def.repo]) return Promise.resolve({ 'skipped': true }) |
|
|
|
|
|
else performPull(def, def.branch || 'master') |
|
|
|
|
|
}) |
|
|
var etask = ()=>{ |
|
|
var etask = ()=>{ |
|
|
return any(elevatedRunasRepos.map((def) => performPull(def, def.branch || 'master'))).then(() => { |
|
|
|
|
|
|
|
|
return any(elevatedRunasRepos.map((def) => |
|
|
|
|
|
{ |
|
|
|
|
|
if (exludeMergeRepos[def.repo]) return Promise.resolve({ 'skipped': true }) |
|
|
|
|
|
else performPull(def, def.branch || 'master') |
|
|
|
|
|
|
|
|
|
|
|
})).then(() => { |
|
|
fs.writeFileSync('run.done', 'success') |
|
|
fs.writeFileSync('run.done', 'success') |
|
|
}).catch(() => { |
|
|
}).catch(() => { |
|
|
fs.writeFileSync('run.done', 'error') |
|
|
fs.writeFileSync('run.done', 'error') |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var excludeCheckouts = Object.assign(exludeMergeRepos) |
|
|
var excludeCheckouts = Object.assign(exludeMergeRepos) |
|
|
delete excludeCheckouts[`elixir-config-${runconfig.NODE_ENV}`] |
|
|
delete excludeCheckouts[`elixir-config-${runconfig.NODE_ENV}`] |
|
|
delete excludeCheckouts[`cihsr-config-${runconfig.NODE_ENV}`] |
|
|
|
|
|
|
|
|
// delete excludeCheckouts[`cihsr-config-${runconfig.NODE_ENV}`] |
|
|
|
|
|
|
|
|
var performMerge = (def) => { |
|
|
var performMerge = (def) => { |
|
|
if (exludeMergeRepos[def.repo]) return Promise.resolve({ 'skipped': true }) |
|
|
if (exludeMergeRepos[def.repo]) return Promise.resolve({ 'skipped': true }) |