serverless/lib/plugins/rollback.js
Mariusz Nowak 2294a4b4cb refactor(CLI): Move lifecycles definition to commands schema
It's needed to be able to process commands as introduced by plugins without a need of processing Serverless instance
2021-03-24 11:50:24 +01:00

23 lines
418 B
JavaScript

'use strict';
const cliCommandsSchema = require('../cli/commands-schema');
class Rollback {
constructor(serverless) {
this.serverless = serverless;
this.commands = {
rollback: {
...cliCommandsSchema.get('rollback'),
commands: {
function: {
...cliCommandsSchema.get('rollback function'),
},
},
},
};
}
}
module.exports = Rollback;