|  |  | @@ -976,7 +976,7 @@ var op = { | 
		
	
		
			
			|  |  |  | // Usage : | 
		
	
		
			
			|  |  |  | // elxr pull -- Defaults to run config | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | return elxr.getpulltask()() | 
		
	
		
			
			|  |  |  | return elxr.getpulltask(selectedinstance)() | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | , 'isInstalled': () => { | 
		
	
		
			
			|  |  |  | return nodeShellExec('where', [processedArgs._[1]], { inherit: true }).then(() => { | 
		
	
	
		
			
			|  |  | @@ -1659,11 +1659,18 @@ var elxr = { | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | , getpulltask(def){ | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | def = def || { | 
		
	
		
			
			|  |  |  | def = (def ? ( | 
		
	
		
			
			|  |  |  | def.requiresElevation = true, | 
		
	
		
			
			|  |  |  | def.reqularRepos = def.repos, | 
		
	
		
			
			|  |  |  | def.elevatedRepos = def.elevatedRunasRepos | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | ) : false) || { | 
		
	
		
			
			|  |  |  | requiresElevation : true, | 
		
	
		
			
			|  |  |  | reqularRepos : gitRepos, | 
		
	
		
			
			|  |  |  | elevatedRepos : elevatedRunasRepos | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  |  | 
		
	
		
			
			|  |  |  | console.log(`-------------------Processing pull for : ${def.repo} ${def.branch}`) | 
		
	
		
			
			|  |  |  | console.dir(def) | 
		
	
		
			
			|  |  |  | 
 | 
		
	
	
		
			
			|  |  | @@ -1758,16 +1765,16 @@ function acquireChoices(selectedinstance) { | 
		
	
		
			
			|  |  |  | Warning : Cannot locate your preferred configuration since it was not specified | 
		
	
		
			
			|  |  |  | You should fork the default chess configuration to customize and make it | 
		
	
		
			
			|  |  |  | your own instance with a named config as | 
		
	
		
			
			|  |  |  | {{yourowninstancename}}-config-{{yourcurrentenvironment}} | 
		
	
		
			
			|  |  |  | {{yourowninstancename}}-config-{{yourchosenenvironment}} | 
		
	
		
			
			|  |  |  | And then run this tool as follows | 
		
	
		
			
			|  |  |  | NODE_ENV={{yourenvironment}} elxr i {{yourowninstancename}} | 
		
	
		
			
			|  |  |  | NODE_ENV={{yourchosenenvironment}} elxr i {{yourowninstancename}} | 
		
	
		
			
			|  |  |  | OR | 
		
	
		
			
			|  |  |  | Run this tool with the following command to use a quick start default. | 
		
	
		
			
			|  |  |  | node elxr --default | 
		
	
		
			
			|  |  |  | elxr --default | 
		
	
		
			
			|  |  |  | OR | 
		
	
		
			
			|  |  |  | Choose the the option to create a new instance for you interactively. | 
		
	
		
			
			|  |  |  | Choose one of the options below to run interactively. | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | We will run your choice of default or create your own at the next prompt. | 
		
	
		
			
			|  |  |  | We will run your choice at the next prompt. | 
		
	
		
			
			|  |  |  | ------------------------------------------------------------------------------- | 
		
	
		
			
			|  |  |  | `)) | 
		
	
		
			
			|  |  |  | var prompt = cli.prompter; | 
		
	
	
		
			
			|  |  | @@ -1784,7 +1791,6 @@ We will run your choice of default or create your own at the next prompt. | 
		
	
		
			
			|  |  |  | q) Quit | 
		
	
		
			
			|  |  |  | Default <= d | 
		
	
		
			
			|  |  |  | : `).then((choice) => { | 
		
	
		
			
			|  |  |  | prompt.close(); | 
		
	
		
			
			|  |  |  | if (choice && choice === 'd' || !choice) { | 
		
	
		
			
			|  |  |  | processedArgs._[0] = 'i' | 
		
	
		
			
			|  |  |  | selectedinstance.instanceName = processedArgs._[1] = processedArgs._[1] || 'chess' | 
		
	
	
		
			
			|  |  | @@ -1813,7 +1819,6 @@ We will run your choice of default or create your own at the next prompt. | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | return p1.ask(`Enter preferred repo server ( <= ${selectedinstance.reposerver || selectedinstance.reposervers[0]} ) : `).then(function (reposerver) { | 
		
	
		
			
			|  |  |  | p1.close() | 
		
	
		
			
			|  |  |  | selectedinstance.reposerver = reposerver || selectedinstance.reposervers[0] || 'https://git.bbh.org.in' | 
		
	
		
			
			|  |  |  | }) | 
		
	
		
			
			|  |  |  | }) | 
		
	
	
		
			
			|  |  | @@ -1834,7 +1839,6 @@ We will run your choice of default or create your own at the next prompt. | 
		
	
		
			
			|  |  |  | else processedArgs._[0] = cmd | 
		
	
		
			
			|  |  |  | return p1.ask(`Enter preferred repo server ( <= ${selectedinstance.reposerver || selectedinstance.reposervers[0]} ) : `).then(function (reposerver) { | 
		
	
		
			
			|  |  |  | selectedinstance.reposerver = reposerver || selectedinstance.reposervers[0] || 'https://git.bbh.org.in' | 
		
	
		
			
			|  |  |  | p1.close() | 
		
	
		
			
			|  |  |  | }) | 
		
	
		
			
			|  |  |  | }) | 
		
	
		
			
			|  |  |  | }) | 
		
	
	
		
			
			|  |  | @@ -1989,7 +1993,7 @@ var prerequisites = [ | 
		
	
		
			
			|  |  |  | () => prompt.ask(`git user name : ( <= ${gitUser} )`).then((user) => { gitUser = user; }) | 
		
	
		
			
			|  |  |  | , () => prompt.ask(`git email : ( <= ${gitEmail} )`).then((email) => { gitEmail = email; }) | 
		
	
		
			
			|  |  |  | ] | 
		
	
		
			
			|  |  |  | return any([any(steps), any(prompts)]).then(() => { prompt.close() }) | 
		
	
		
			
			|  |  |  | return any([any(steps), any(prompts)]) | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | , installsteps: function () { | 
		
	
		
			
			|  |  |  | return any([this.installcmd].map(callsheltask)) | 
		
	
	
		
			
			|  |  | @@ -2407,7 +2411,7 @@ acquireElevationState().then(() => { | 
		
	
		
			
			|  |  |  |  | 
		
	
		
			
			|  |  |  | if(!processedArgs._[0] || !selectedinstance.node_env || !selectedinstance.instanceName){ | 
		
	
		
			
			|  |  |  | // Weve been told what to do. | 
		
	
		
			
			|  |  |  | todo = acquireChoices(selectedinstance) | 
		
	
		
			
			|  |  |  | todo = todo.then(() => { return acquireChoices(selectedinstance) }) | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  |  | 
		
	
		
			
			|  |  |  | todo = todo.then(() => { | 
		
	
	
		
			
			|  |  | @@ -2465,7 +2469,7 @@ acquireElevationState().then(() => { | 
		
	
		
			
			|  |  |  | // Currently it retains 2*n when proc needs to be relaunched in elevated mode !!! | 
		
	
		
			
			|  |  |  | ensureDirectoryExistence(`${selectedinstance.root}/.elxr/run-${runtimestamp}/download.bat`) | 
		
	
		
			
			|  |  |  |  | 
		
	
		
			
			|  |  |  | if (!skipprerequisites && !__isElevated) mainTasks.push(verifyAndInstallPrerequisites); | 
		
	
		
			
			|  |  |  | if (!skipprerequisites && !__isElevated || processedArgs.forceprereqs && !__isElevated ) mainTasks.push(verifyAndInstallPrerequisites); | 
		
	
		
			
			|  |  |  | mainTasks.push(maintask) | 
		
	
		
			
			|  |  |  | return any(mainTasks); | 
		
	
		
			
			|  |  |  | }) |