pulumi/sdk/nodejs/metadata.ts
Pat Gavlin a23b10a9bf
Update the copyright end date to 2018. (#1068)
Just what it says on the tin.
2018-03-21 12:43:21 -07:00

19 lines
546 B
TypeScript

// Copyright 2016-2018, 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";
}