How to use the @azbake/core.BakeVariable function in @azbake/core

To help you get started, we’ve selected a few @azbake/core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github HomecareHomebase / azure-bake / ingredient / ingredient-utils / src / functions.ts View on Github external
public async variable(key: string, def?: string): Promise {
        let v: BakeVariable = this._find_variable(key) || new BakeVariable(def || "");
        return await v.valueAsync(this.context);
    }
github HomecareHomebase / azure-bake / ingredient / ingredient-utils / src / functions.ts View on Github external
public async regionVariable(key: string, def?: string, region?: IBakeRegion | null): Promise {
        let rgn = region || this.context.Region
        let rgn_code = rgn.shortName

        //first try and resolve the variable by prepending the region code.
        let rgn_key = rgn_code + "__" + key

        let v: BakeVariable = this._find_variable(rgn_key) || this._find_variable(key) || new BakeVariable(def || "")
        return await v.valueAsync(this.context);
    }

@azbake/core

core bake library to integrate 3rd party ingredients into the system

MIT
Latest version published 5 months ago

Package Health Score

64 / 100
Full package analysis

Similar packages