mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
33 lines
663 B
JavaScript
33 lines
663 B
JavaScript
'use strict';
|
|
|
|
const JawsPlugin = require('./JawsPlugin'),
|
|
Promise = require('bluebird');
|
|
|
|
class RyansPlugin extends JawsPlugin {
|
|
/**
|
|
*
|
|
* @param Jaws class object
|
|
* @param config object
|
|
*/
|
|
constructor(Jaws, config) {
|
|
super(Jaws, config);
|
|
}
|
|
|
|
/**
|
|
* @returns {Promise} upon completion of all registrations
|
|
*/
|
|
registerActions() {
|
|
this.Jaws.action('ProjectCreate', this._projectCreateAction());
|
|
return Promise.resolve();
|
|
}
|
|
|
|
_projectCreateAction() {
|
|
return function*(next) {
|
|
console.log('In RyansPlugin::projectCreateAction');
|
|
yield 'Value';
|
|
asfasfsaf
|
|
}
|
|
}
|
|
}
|
|
|
|
module.exports = RyansPlugin; |