Rename pullImage to pullAndProtectImage to make it a bit clearer that it isn't a simple pull

This commit is contained in:
Pagan Gazzard 2016-06-20 11:57:48 -07:00 committed by Pablo Carranza Velez
parent 707ed7e1f6
commit 6cb4b090c5
2 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ exports.up = (path, onStatus) ->
throw new Error("Service #{serviceName} has no image specified.") if !service.image
docker.getImage(service.image).inspectAsync()
.catch ->
dockerUtils.pullImage(service.image, reportStatus)
dockerUtils.pullAndProtectImage(service.image, reportStatus)
.then ->
runComposeCommand(['up', '-d'], path, onStatus)

View File

@ -200,7 +200,7 @@ do ->
.catch (err) ->
res.status(500).send(err?.message or err or 'Unknown error')
exports.pullImage = (image, onProgress) ->
exports.pullAndProtectImage = (image, onProgress) ->
repoTag = buildRepoTag(image)
Promise.using writeLockImages(), ->
knex('image').insert({ repoTag })