|
|
|
|
|
|
|
|
// PB : TODO -- pick up remote definitions per repository... |
|
|
// PB : TODO -- pick up remote definitions per repository... |
|
|
var reposmanfiest = utils.assign_core( { keycase : true, arraymergetype : utils.assign_core.DISTINCT_UNION } |
|
|
var reposmanfiest = utils.assign_core( { keycase : true, arraymergetype : utils.assign_core.DISTINCT_UNION } |
|
|
, {}, selectedinstance, loadmanifest( selectedinstance.root + '/' + repo |
|
|
, {}, selectedinstance, loadmanifest( selectedinstance.root + '/' + repo |
|
|
, { utils, username : selectedinstance.username, instanceName : selectedinstance.instanceName |
|
|
|
|
|
|
|
|
, { username : selectedinstance.username, instanceName : selectedinstance.instanceName |
|
|
, node_env : selectedinstance.node_env, reposerver : selectedinstance.reposerver } |
|
|
, node_env : selectedinstance.node_env, reposerver : selectedinstance.reposerver } |
|
|
)) |
|
|
)) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
try { |
|
|
// PB : TODO -- pick up remote definitions per repository... |
|
|
// PB : TODO -- pick up remote definitions per repository... |
|
|
return utils.assign_core( { keycase : true, arraymergetype : utils.assign_core.DISTINCT_UNION } |
|
|
return utils.assign_core( { keycase : true, arraymergetype : utils.assign_core.DISTINCT_UNION } |
|
|
, {}, require(path.normalize( mpath + '/repo-manifest'))( null, moverrides )) |
|
|
|
|
|
|
|
|
, {}, require(path.normalize( mpath + '/repo-manifest'))( {utils}, null, moverrides )) |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
catch(e){ |
|
|
catch(e){ |
|
|
|
|
|
|
|
|
// Also attepmt to load preconfig specially for new chessinstances from ../chess-config/... |
|
|
// Also attepmt to load preconfig specially for new chessinstances from ../chess-config/... |
|
|
|
|
|
|
|
|
var __repo_manifest_elxr = loadmanifest( instance.root + '/elxr' |
|
|
var __repo_manifest_elxr = loadmanifest( instance.root + '/elxr' |
|
|
, { utils, username : instance.username /** ??? TODO */ , instanceName : instance.instanceName /** ??? TODO */ |
|
|
|
|
|
|
|
|
, { username : instance.username /** ??? TODO */ , instanceName : instance.instanceName /** ??? TODO */ |
|
|
, node_env : clioverrides.node_env, reposerver : instance.reposerver /** ??? TODO */ } // options |
|
|
, node_env : clioverrides.node_env, reposerver : instance.reposerver /** ??? TODO */ } // options |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(instance_specific_config_manifest.error) console.log(instance_specific_config_manifest.e.message) |
|
|
if(instance_specific_config_manifest.error) console.log(instance_specific_config_manifest.e.message) |
|
|
delete __repo_manifest_elxr.error |
|
|
delete __repo_manifest_elxr.error |
|
|
delete __repo_manifest_elxr.e |
|
|
delete __repo_manifest_elxr.e |
|
|
delete __repo_manifest_elxr.utils |
|
|
|
|
|
|
|
|
// delete __repo_manifest_elxr.utils |
|
|
delete instance_specific_config_manifest.error |
|
|
delete instance_specific_config_manifest.error |
|
|
delete instance_specific_config_manifest.e |
|
|
delete instance_specific_config_manifest.e |
|
|
delete instance_specific_config_manifest.utils |
|
|
|
|
|
|
|
|
// delete instance_specific_config_manifest.utils |
|
|
|
|
|
|
|
|
// selectedinstance is not complete until we load in the following order of priority... |
|
|
// selectedinstance is not complete until we load in the following order of priority... |
|
|
// 1) inline defaults |
|
|
// 1) inline defaults |
|
|
|
|
|
|
|
|
// PB : TODO -- pick up remote definitions per repository... |
|
|
// PB : TODO -- pick up remote definitions per repository... |
|
|
var reposmanfiest = utils.assign_core( { keycase : true, arraymergetype : utils.assign_core.DISTINCT_UNION } |
|
|
var reposmanfiest = utils.assign_core( { keycase : true, arraymergetype : utils.assign_core.DISTINCT_UNION } |
|
|
, {}, selectedinstance, loadmanifest( selectedinstance.root + '/' + repo |
|
|
, {}, selectedinstance, loadmanifest( selectedinstance.root + '/' + repo |
|
|
, { utils, username : selectedinstance.username, instanceName : selectedinstance.instanceName |
|
|
|
|
|
|
|
|
, { username : selectedinstance.username, instanceName : selectedinstance.instanceName |
|
|
, node_env : selectedinstance.node_env, reposerver : selectedinstance.reposerver } |
|
|
, node_env : selectedinstance.node_env, reposerver : selectedinstance.reposerver } |
|
|
)) |
|
|
)) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
statuslog.statuslog(e, e) |
|
|
statuslog.statuslog(e, e) |
|
|
var manifestpath = path.normalize(selected.root + '/' + selected.instanceName + '-config-' + selected.node_env + '/repo-manifest'); |
|
|
var manifestpath = path.normalize(selected.root + '/' + selected.instanceName + '-config-' + selected.node_env + '/repo-manifest'); |
|
|
utils.assign_core( { keycase : true, arraymergetype : utils.assign_core.DISTINCT_UNION } |
|
|
utils.assign_core( { keycase : true, arraymergetype : utils.assign_core.DISTINCT_UNION } |
|
|
, selectedinstance, require(manifestpath)( null, { utils, username : selectedinstance.username, instanceName : selectedinstance.instanceName |
|
|
|
|
|
|
|
|
, selectedinstance, require(manifestpath)( {utils}, null, { username : selectedinstance.username, instanceName : selectedinstance.instanceName |
|
|
, node_env : selectedinstance.node_env, reposerver : 'https://git.bbh.org.in' } )) |
|
|
, node_env : selectedinstance.node_env, reposerver : 'https://git.bbh.org.in' } )) |
|
|
console.dir(selectedinstance.repos) |
|
|
console.dir(selectedinstance.repos) |
|
|
// Config from server always override merges into selection except for the current selection. |
|
|
// Config from server always override merges into selection except for the current selection. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var manifestpath = path.normalize(selected.root + '/' + selected.instanceName + '-config-' + selected.node_env + '/repo-manifest'); |
|
|
var manifestpath = path.normalize(selected.root + '/' + selected.instanceName + '-config-' + selected.node_env + '/repo-manifest'); |
|
|
utils.assign_core( { keycase : true, arraymergetype : utils.assign_core.DISTINCT_UNION } |
|
|
utils.assign_core( { keycase : true, arraymergetype : utils.assign_core.DISTINCT_UNION } |
|
|
, selectedinstance, require(manifestpath)( null, { utils, username : selectedinstance.username, instanceName : selectedinstance.instanceName |
|
|
|
|
|
|
|
|
, selectedinstance, require(manifestpath)( {utils}, null, { username : selectedinstance.username, instanceName : selectedinstance.instanceName |
|
|
, node_env : selectedinstance.node_env, reposerver : selectedinstance.reposerver })) |
|
|
, node_env : selectedinstance.node_env, reposerver : selectedinstance.reposerver })) |
|
|
console.dir(selectedinstance.repos) |
|
|
console.dir(selectedinstance.repos) |
|
|
// Config from server always override merges into selection except for the current selection. |
|
|
// Config from server always override merges into selection except for the current selection. |