infra/aws/index.js
function (options, cb) {
		options.soajs.log.debug("Checking if Cluster is healthy ...");
		let stack = options.infra.stack;

		let containerOptions = Object.assign({}, options);
        containerOptions.technology = (containerOptions && containerOptions.params && containerOptions.params.technology) ? containerOptions.params.technology : defaultDriver;

		//get the environment record
		if (options.soajs.registry.deployer.container[stack.technology].remote.nodes && options.soajs.registry.deployer.container[stack.technology].remote.nodes !== '') {
			let machineIp = options.soajs.registry.deployer.container[stack.technology].remote.nodes;
			return cb(null, machineIp);
		}
		else {
			let out = false;
			async.series({
				"pre": (mCb) => {
					runCorrespondingDriver('getDeployClusterStatusPre', containerOptions, mCb);
				},
				"exec": (mCb) => {
					ClusterDriver.getDeployClusterStatus(options, (error, response) => {
						if (response) {
							out = response;
							containerOptions.out = out;
						}
						return mCb(error, response);
					});
				},
				"post": (mCb) => {
					if (out) {
						runCorrespondingDriver('getDeployClusterStatusPost', containerOptions, mCb);
					}
					else {
						return mCb();
					}
				}
			}, (error) => {
				return cb(error, out);
			});
		}
	}
function (options, cb) {
		options.soajs.log.debug("Checking if Cluster is healthy ...");
		let stack = options.infra.stack;

		let containerOptions = Object.assign({}, options);
        containerOptions.technology = (containerOptions && containerOptions.params && containerOptions.params.technology) ? containerOptions.params.technology : defaultDriver;

		//get the environment record
		if (options.soajs.registry.deployer.container[stack.technology].remote.nodes && options.soajs.registry.deployer.container[stack.technology].remote.nodes !== '') {
			let machineIp = options.soajs.registry.deployer.container[stack.technology].remote.nodes;
			return cb(null, machineIp);
		}
		else {
			let out = false;
			async.series({
				"pre": (mCb) => {
					runCorrespondingDriver('getDeployClusterStatusPre', containerOptions, mCb);
				},
				"exec": (mCb) => {
					ClusterDriver.getDeployClusterStatus(options, (error, response) => {
						if (response) {
							out = response;
							containerOptions.out = out;
						}
						return mCb(error, response);
					});
				},
				"post": (mCb) => {
					if (out) {
						runCorrespondingDriver('getDeployClusterStatusPost', containerOptions, mCb);
					}
					else {
						return mCb();
					}
				}
			}, (error) => {
				return cb(error, out);
			});
		}
	}
function ( options , cb ) { options . soajs . log . debug ( "Checking if Cluster is healthy ..." ) ; let stack = options . infra . stack ; let containerOptions = Object . assign ( { } , options ) ; containerOptions . technology = ( containerOptions && containerOptions . params && containerOptions . params . technology ) ? containerOptions . params . technology : defaultDriver ; //get the environment record if ( options . soajs . registry . deployer . container [ stack . technology ] . remote . nodes && options . soajs . registry . deployer . container [ stack . technology ] . remote . nodes !== '' ) { let machineIp = options . soajs . registry . deployer . container [ stack . technology ] . remote . nodes ; return cb ( null , machineIp ) ; } else { let out = false ; async . series ( { "pre" : ( mCb ) => { runCorrespondingDriver ( 'getDeployClusterStatusPre' , containerOptions , mCb ) ; } , "exec" : ( mCb ) => { ClusterDriver . getDeployClusterStatus ( options , ( error , response ) => { if ( response ) { out = response ; containerOptions . out = out ; } return mCb ( error , response ) ; } ) ; } , "post" : ( mCb ) => { if ( out ) { runCorrespondingDriver ( 'getDeployClusterStatusPost' , containerOptions , mCb ) ; } else { return mCb ( ) ; } } } , ( error ) => { return cb ( error , out ) ; } ) ; } }
This method takes the id of the stack as an input and check if the stack has been deployed
it returns the ip that can be used to access the machine
@param options
@param cb
@returns {*}
This method takes the id of the stack as an input and check if the stack has been deployed it returns the ip that can be used to access the machine