pulumi/sdk/nodejs/metadata.ts
joeduffy 7e48e8726b Add (back) component outputs
This change adds back component output properties.  Doing so
requires splitting the RPC interface for creating resources in
half, with an initial RegisterResource which contains all of the
input properties, and a final CompleteResource which optionally
contains any output properties synthesized by the component.
2017-11-20 17:38:09 -08:00

19 lines
546 B
TypeScript

// Copyright 2016-2017, Pulumi Corporation. All rights reserved.
// This file exports metadata about the context in which a program is being run.
import * as runtime from "./runtime";
/**
* getProject returns the current project name, or the empty string if there is none.
*/
export function getProject(): string {
return runtime.options.project || "project";
}
/**
* getStack returns the current stack name, or the empty string if there is none.
*/
export function getStack(): string {
return runtime.options.stack || "stack";
}