From 3c3a909fe3cd84ca60b51921e1d514cbb09f7b0f Mon Sep 17 00:00:00 2001 From: CrazyMax <1951866+crazy-max@users.noreply.github.com> Date: Thu, 18 Apr 2024 13:18:05 +0200 Subject: [PATCH] buildx: remove unused printInspect method Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com> --- __tests__/buildx/buildx.test.ts | 15 --------------- src/buildx/buildx.ts | 7 ------- 2 files changed, 22 deletions(-) diff --git a/__tests__/buildx/buildx.test.ts b/__tests__/buildx/buildx.test.ts index 503667ad..db06e435 100644 --- a/__tests__/buildx/buildx.test.ts +++ b/__tests__/buildx/buildx.test.ts @@ -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'); diff --git a/src/buildx/buildx.ts b/src/buildx/buildx.ts index 4e802da6..085b1b73 100644 --- a/src/buildx/buildx.ts +++ b/src/buildx/buildx.ts @@ -86,13 +86,6 @@ export class Buildx { return ok; } - public async printInspect(name: string): Promise { - const cmd = await this.getCommand(['inspect', name]); - await Exec.exec(cmd.command, cmd.args, { - failOnStdErr: false - }); - } - public async version(): Promise { if (this._versionOnce) { return this._version;