mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
Merge pull request #426 from Nopik/deployment-description
Added support for custom stage deployment descriptions
This commit is contained in:
commit
c3ee8a49c9
@ -69,6 +69,10 @@ module.exports = function(SPlugin, serverlessPath) {
|
||||
option: 'all',
|
||||
shortcut: 'a',
|
||||
description: 'Optional - Select all Functions in your project for deployment'
|
||||
}, {
|
||||
option: 'description',
|
||||
shortcut: 'd',
|
||||
description: 'Optional - Provide custom description string for API Gateway stage deployment description'
|
||||
}
|
||||
],
|
||||
});
|
||||
@ -108,6 +112,7 @@ module.exports = function(SPlugin, serverlessPath) {
|
||||
evt.all = evt.all ? true : false;
|
||||
evt.aliasEndpoint = evt.aliasEndpoint ? evt.aliasEndpoint : null;
|
||||
evt.aliasRestApi = evt.aliasRestApi ? evt.aliasRestApi : null;
|
||||
evt.description = evt.description ? evt.description : null;
|
||||
evt.endpoints = [];
|
||||
evt.deployed = {};
|
||||
|
||||
@ -367,7 +372,8 @@ module.exports = function(SPlugin, serverlessPath) {
|
||||
|
||||
let newEvent = {
|
||||
stage: evt.stage,
|
||||
region: regionConfig
|
||||
region: regionConfig,
|
||||
description: evt.description
|
||||
};
|
||||
|
||||
return _this.S.actions.endpointDeployApiGateway(newEvent);
|
||||
|
||||
@ -82,7 +82,7 @@ module.exports = function(SPlugin, serverlessPath) {
|
||||
stageName: evt.stage, /* required */
|
||||
//cacheClusterEnabled: false, TODO: Implement
|
||||
//cacheClusterSize: '0.5 | 1.6 | 6.1 | 13.5 | 28.4 | 58.2 | 118 | 237', TODO: Implement
|
||||
description: 'Serverless deployment',
|
||||
description: evt.description || 'Serverless deployment',
|
||||
stageDescription: evt.stage,
|
||||
variables: {
|
||||
functionAlias: evt.stage
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user