buildkit(config): rename methods

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax
2023-02-03 14:45:32 +01:00
parent fdfeb2486a
commit 11bdb1082a
2 changed files with 8 additions and 8 deletions

View File

@@ -25,15 +25,15 @@ export class Config {
this.context = context;
}
public generateFromString(s: string): string {
return this.generate(s, false);
public resolveFromString(s: string): string {
return this.resolve(s, false);
}
public generateFromFile(s: string): string {
return this.generate(s, true);
public resolveFromFile(s: string): string {
return this.resolve(s, true);
}
private generate(s: string, file: boolean): string {
private resolve(s: string, file: boolean): string {
if (file) {
if (!fs.existsSync(s)) {
throw new Error(`config file ${s} not found`);