Skip to content

Commit

Permalink
Merge pull request #211 from kuzzleio/fix/refactoring-paas-files
Browse files Browse the repository at this point in the history
Fix/refactoring paas files
  • Loading branch information
rolljee authored Dec 11, 2024
2 parents daf4823 + 5643114 commit f38f4a7
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/support/PaasKommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit f38f4a7

Please sign in to comment.