Mariusz Nowak 4944f471b1
Prettify
2019-06-26 12:43:01 +02:00

26 lines
508 B
JavaScript

'use strict';
const BbPromise = require('bluebird');
class Plugin {
constructor(serverless, options) {
this.serverless = serverless;
this.options = options;
this.commands = {
plugin: {
usage: 'Plugin management for Serverless',
lifecycleEvents: ['plugin'],
},
};
this.hooks = {
'plugin:plugin': () => {
this.serverless.cli.generateCommandsHelp(['plugin']);
return BbPromise.resolve();
},
};
}
}
module.exports = Plugin;