From 8c6676bf695b14202499af2924f68a3b00419c4a Mon Sep 17 00:00:00 2001 From: rolljee Date: Wed, 11 Dec 2024 09:27:28 +0100 Subject: [PATCH] Removing unused function for paas --- src/support/PaasKommand.ts | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/support/PaasKommand.ts b/src/support/PaasKommand.ts index 7428bfef..ceb2bb30 100644 --- a/src/support/PaasKommand.ts +++ b/src/support/PaasKommand.ts @@ -74,18 +74,4 @@ export class PaasKommand extends Kommand { return this.flags.project; } - - async getCredentials() { - const project = this.getProject(); - const projectFile = this.fileProjectCredentials(project); - - if (!fs.existsSync(projectFile)) { - this.logKo("You are not logged in. You should run paas:login first. Aborting."); - process.exit(1); - } - - const credentials = JSON.parse(fs.readFileSync(projectFile, "utf8")); - - return credentials.apiKey; - } }