DashDeploy: Allow API Gateway deployment descriptions

This commit is contained in:
Austen Collins 2016-02-10 19:13:09 -08:00
parent 2c95c6736e
commit c0ed521b27
2 changed files with 10 additions and 3 deletions

View File

@ -14,6 +14,7 @@
* - aliasFunction: (String) Custom Lambda alias.
* - functions: (Array) Array of function JSONs from fun.sl.json
* - deployed: (Object) Contains regions and the code functions that have been uploaded to the S3 bucket in that region
* - description: (String) Provide custom description string for API Gateway stage deployment description.
*/
module.exports = function(SPlugin, serverlessPath) {
@ -78,6 +79,10 @@ module.exports = function(SPlugin, serverlessPath) {
option: 'aliasRestApi', // TODO: Implement
shortcut: 'a',
description: 'Optional - Provide a custom Api Gateway Stage Variable for your REST API'
}, {
option: 'description',
shortcut: 'd',
description: 'Optional - Provide custom description string for API Gateway stage deployment description'
}
]
});
@ -266,9 +271,10 @@ module.exports = function(SPlugin, serverlessPath) {
return _this.S.actions.endpointDeploy({
options: {
stage: _this.evt.options.stage,
region: _this.evt.options.region,
paths: _this.evt.options.endpointPaths
stage: _this.evt.options.stage,
region: _this.evt.options.region,
paths: _this.evt.options.endpointPaths,
description: _this.evt.options.description
}
})
.then(function(evt) {

View File

@ -14,6 +14,7 @@
* - paths: (Array) Array of endpoint paths to deploy. Format: ['users/show@users/show~GET']
* - aliasEndpoint: (String) The Lambda Alias the endpoint should point to.
* - all: (Boolean) Indicates whether all Functions in the project should be deployed.
* - description: (String) Provide custom description string for API Gateway stage deployment description.
*/
module.exports = function(SPlugin, serverlessPath) {