fix(core): update

This commit is contained in:
2019-08-16 12:48:56 +02:00
parent fe3560caac
commit 020737e21b
9 changed files with 22 additions and 19 deletions

View File

@ -13,7 +13,7 @@ export class DockerImage {
return images;
}
public static async findImageByName (dockerHost: DockerHost, imageNameArg: string) {
public static async findImageByName(dockerHost: DockerHost, imageNameArg: string) {
const images = await this.getImages(dockerHost);
return images.find(image => {
return image.RepoTags.includes(imageNameArg);
@ -36,7 +36,7 @@ export class DockerImage {
`Successfully pulled image ${creationObject.imageUrl} from the registry`
);
const originTag = `${creationObject.imageUrl}:${creationObject.tag}`;
console.log(originTag)
console.log(originTag);
const image = await DockerImage.findImageByName(dockerHostArg, originTag);
return image;
} else {
@ -93,9 +93,7 @@ export class DockerImage {
return this.RepoTags.length > 0;
}
public tagImage(newTag) {
}
public tagImage(newTag) {}
/**
* pulls the latest version from the registry
@ -111,6 +109,4 @@ export class DockerImage {
// TODO: Compare image digists before and after
return true;
}
}