How to use the Promise function from q
Find comprehensive JavaScript q.Promise code examples handpicked from public code repositorys.
GitHub: namshi/roger
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);
25
126
42