How to use the Promise function from q

Find comprehensive JavaScript q.Promise code examples handpicked from public code repositorys.

11
12
13
14
15
16
17
18
19
20
}

docker.client = new Docker(config.get('docker.client'));

function extractAndRepackage(project, imageId, builderId, buildId, buildLogger, dockerOptions, uuid) {
  return Q.Promise(function(resolve, reject) {
    delete dockerOptions.dockerfile;
    var extractPath = project.build.extract;
    extractPath += (extractPath[extractPath.length] === '/') ? '.'  : '/.';
    buildLogger.info('Boldly extracting produced stuff form: ', extractPath);
fork icon25
star icon126
watch icon42