This change adds functions, `pulumi.getProject()` and `pulumi.getStack()`, to fetch the names of the project and stack, respectively. These can be handy in generating names, specializing areas of the code, etc. This fixes pulumi/pulumi#429.
18 lines
494 B
TypeScript
18 lines
494 B
TypeScript
// Copyright 2016-2017, Pulumi Corporation. All rights reserved.
|
|
|
|
// Enable source map support so we get good stack traces.
|
|
import "source-map-support/register";
|
|
|
|
// Export top-level elements.
|
|
export * from "./config";
|
|
export * from "./metadata";
|
|
export * from "./resource";
|
|
|
|
// Export submodules individually.
|
|
import * as asset from "./asset";
|
|
import * as dynamic from "./dynamic";
|
|
import * as log from "./log";
|
|
import * as runtime from "./runtime";
|
|
export { asset, dynamic, log, runtime };
|
|
|