buildx: remove unused printInspect method

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax
2024-04-18 13:18:05 +02:00
parent 2bba1c12c1
commit 3c3a909fe3
2 changed files with 0 additions and 22 deletions

View File

@@ -116,21 +116,6 @@ describe('isAvailable', () => {
});
});
describe('printInspect', () => {
it('prints builder2 instance', async () => {
const execSpy = jest.spyOn(Exec, 'exec');
const buildx = new Buildx({
standalone: true
});
await buildx.printInspect('builder2').catch(() => {
// noop
});
expect(execSpy).toHaveBeenCalledWith(`buildx`, ['inspect', 'builder2'], {
failOnStdErr: false
});
});
});
describe('printVersion', () => {
it('docker cli', async () => {
const execSpy = jest.spyOn(Exec, 'exec');

View File

@@ -86,13 +86,6 @@ export class Buildx {
return ok;
}
public async printInspect(name: string): Promise<void> {
const cmd = await this.getCommand(['inspect', name]);
await Exec.exec(cmd.command, cmd.args, {
failOnStdErr: false
});
}
public async version(): Promise<string> {
if (this._versionOnce) {
return this._version;