serverless
Version:
Serverless Framework - Build web, mobile and IoT applications with serverless architectures using AWS Lambda, Azure Functions, Google CloudFunctions & more
31 lines (27 loc) • 687 B
JavaScript
;
class Rollback {
constructor(serverless) {
this.serverless = serverless;
this.commands = {
rollback: {
usage: 'Rollback the Serverless service to a specific deployment',
lifecycleEvents: [
'initialize',
'rollback',
],
options: {
timestamp: {
usage: 'Timestamp of the deployment (list deployments with `serverless deploy list`)',
shortcut: 't',
required: true,
},
verbose: {
usage: 'Show all stack events during deployment',
shortcut: 'v',
},
},
},
};
}
}
module.exports = Rollback;