fix path resolution for env.yml

This commit is contained in:
2017-05-13 11:40:10 +02:00
parent 09c6a0aa8a
commit 44bc565efe
2 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@ export class Qenv {
keyValueObjectArray: IKeyValueObject[] = []
constructor (basePathArg = process.cwd(), envYmlPathArg, failOnMissing = true) {
basePathArg = plugins.path.resolve(basePathArg)
envYmlPathArg = plugins.path.resolve(basePathArg)
envYmlPathArg = plugins.path.resolve(envYmlPathArg)
helpers.getRequiredEnvVars(basePathArg, this.requiredEnvVars)
helpers.getAvailableEnvVars(this.requiredEnvVars, envYmlPathArg, this.availableEnvVars, this.keyValueObjectArray)
this.missingEnvVars = helpers.getMissingEnvVars(this.requiredEnvVars, this.availableEnvVars)