lib/container.js
function link(mode, target, system, containerDef, container, out, cb) {
    logger.info('linking');
    out.stdout('linking');

    var elb = findParentELB(system, container);

    if (elb) {
      logger.info(elb, 'elb found');
      linkToELB(mode, system, elb, container, out, cb);
    } else {
      logger.info('elb not found');
      cb(null, system);
    }
  }
function link(mode, target, system, containerDef, container, out, cb) {
    logger.info('linking');
    out.stdout('linking');

    var elb = findParentELB(system, container);

    if (elb) {
      logger.info(elb, 'elb found');
      linkToELB(mode, system, elb, container, out, cb);
    } else {
      logger.info('elb not found');
      cb(null, system);
    }
  }
function link ( mode , target , system , containerDef , container , out , cb ) { logger . info ( 'linking' ) ; out . stdout ( 'linking' ) ; var elb = findParentELB ( system , container ) ; if ( elb ) { logger . info ( elb , 'elb found' ) ; linkToELB ( mode , system , elb , container , out , cb ) ; } else { logger . info ( 'elb not found' ) ; cb ( null , system ) ; } }
link the container to the target
target - target to deploy to
system - the target system defintinion
cdef - the contianer definition
container - the container as defined in the system topology
out - ouput stream
cb - complete callback
link the container to the target target - target to deploy to system - the target system defintinion cdef - the contianer definition container - the container as defined in the system topology out - ouput stream cb - complete callback