buildx: expose methods

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax
2023-01-23 15:11:35 +01:00
parent fdc8b5d37b
commit 14581244a3
2 changed files with 16 additions and 16 deletions

View File

@@ -22,6 +22,14 @@ export class Buildx {
this.version = this.getVersion();
}
public tmpDir() {
return this.tmpdir;
}
public tmpName(options?: tmp.TmpNameOptions): string {
return tmp.tmpNameSync(options);
}
public getCommand(args: Array<string>) {
return {
command: this.standalone ? 'buildx' : 'docker',
@@ -179,12 +187,4 @@ export class Buildx {
}
return false;
}
private tmpDir() {
return this.tmpdir;
}
private tmpName(options?: tmp.TmpNameOptions): string {
return tmp.tmpNameSync(options);
}
}