mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
Merge pull request #2754 from serverless/get-stack-nae
bring back provider.getStackName()
This commit is contained in:
commit
d021e723e7
@ -111,6 +111,21 @@ class AwsProvider {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Deprecated method. Moved to naming.js
|
||||
* Kept here for backward compatibility
|
||||
*/
|
||||
getStackName(stage) {
|
||||
const warningMessage = [
|
||||
'Deprecation Notice: provider.getStackName() method is deprecated.',
|
||||
' Please reference the naming.js file instead: ',
|
||||
' ex. naming.getStackName();',
|
||||
].join('');
|
||||
|
||||
this.serverless.cli.log(warningMessage);
|
||||
return `${this.serverless.service.service}-${stage}`;
|
||||
}
|
||||
|
||||
request(service, method, params) {
|
||||
const that = this;
|
||||
const credentials = that.getCredentials();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user