mirror of
https://github.com/serverless/serverless.git
synced 2025-12-08 19:46:03 +00:00
31 lines
687 B
JavaScript
31 lines
687 B
JavaScript
'use strict';
|
|
|
|
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;
|