fix path resolution for env.yml
This commit is contained in:
parent
09c6a0aa8a
commit
44bc565efe
4
dist/qenv.classes.qenv.js
vendored
4
dist/qenv.classes.qenv.js
vendored
@ -9,7 +9,7 @@ class Qenv {
|
|||||||
this.missingEnvVars = [];
|
this.missingEnvVars = [];
|
||||||
this.keyValueObjectArray = [];
|
this.keyValueObjectArray = [];
|
||||||
basePathArg = plugins.path.resolve(basePathArg);
|
basePathArg = plugins.path.resolve(basePathArg);
|
||||||
envYmlPathArg = plugins.path.resolve(basePathArg);
|
envYmlPathArg = plugins.path.resolve(envYmlPathArg);
|
||||||
helpers.getRequiredEnvVars(basePathArg, this.requiredEnvVars);
|
helpers.getRequiredEnvVars(basePathArg, this.requiredEnvVars);
|
||||||
helpers.getAvailableEnvVars(this.requiredEnvVars, envYmlPathArg, this.availableEnvVars, this.keyValueObjectArray);
|
helpers.getAvailableEnvVars(this.requiredEnvVars, envYmlPathArg, this.availableEnvVars, this.keyValueObjectArray);
|
||||||
this.missingEnvVars = helpers.getMissingEnvVars(this.requiredEnvVars, this.availableEnvVars);
|
this.missingEnvVars = helpers.getMissingEnvVars(this.requiredEnvVars, this.availableEnvVars);
|
||||||
@ -30,4 +30,4 @@ class Qenv {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
exports.Qenv = Qenv;
|
exports.Qenv = Qenv;
|
||||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicWVudi5jbGFzc2VzLnFlbnYuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9xZW52LmNsYXNzZXMucWVudi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDBDQUF5QztBQUN6QywwQ0FBeUM7QUFPekM7SUFLRSxZQUFhLFdBQVcsR0FBRyxPQUFPLENBQUMsR0FBRyxFQUFFLEVBQUUsYUFBYSxFQUFFLGFBQWEsR0FBRyxJQUFJO1FBSjdFLG9CQUFlLEdBQWEsRUFB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athArg = process.cwd(), envYmlPathArg, failOnMissing = true) {
|
constructor (basePathArg = process.cwd(), envYmlPathArg, failOnMissing = true) {
|
||||||
basePathArg = plugins.path.resolve(basePathArg)
|
basePathArg = plugins.path.resolve(basePathArg)
|
||||||
envYmlPathArg = plugins.path.resolve(basePathArg)
|
envYmlPathArg = plugins.path.resolve(envYmlPathArg)
|
||||||
helpers.getRequiredEnvVars(basePathArg, this.requiredEnvVars)
|
helpers.getRequiredEnvVars(basePathArg, this.requiredEnvVars)
|
||||||
helpers.getAvailableEnvVars(this.requiredEnvVars, envYmlPathArg, this.availableEnvVars, this.keyValueObjectArray)
|
helpers.getAvailableEnvVars(this.requiredEnvVars, envYmlPathArg, this.availableEnvVars, this.keyValueObjectArray)
|
||||||
this.missingEnvVars = helpers.getMissingEnvVars(this.requiredEnvVars, this.availableEnvVars)
|
this.missingEnvVars = helpers.getMissingEnvVars(this.requiredEnvVars, this.availableEnvVars)
|
||||||
|
Loading…
Reference in New Issue
Block a user