pulumi/sdk/nodejs/runtime/config.ts
joeduffy d8635fd4f3 Move modules to package root
The organization of packages underneath lib/ breaks the easy consumption
of submodules, a la

    import {FileAsset} from "@pulumi/pulumi-fabric/asset";

We will go back to having everything hanging off the module root directory.
2017-09-04 11:35:21 -07:00

15 lines
399 B
TypeScript

// Copyright 2016-2017, Pulumi Corporation. All rights reserved.
let config: {[key: string]: string} = {};
// setConfig sets a configuration variable.
export function setConfig(k: string, v: string): void {
config[k] = v;
}
// getConfig returns a configuration variable's value or undefined if it is unset.
export function getConfig(k: string): string | undefined {
return config[k];
}