mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
26 lines
547 B
JavaScript
26 lines
547 B
JavaScript
'use strict';
|
|
|
|
const BbPromise = require('bluebird');
|
|
const forEach = require('lodash').forEach;
|
|
|
|
module.exports = {
|
|
extractFunctionHandlers() {
|
|
this.deployedFunctions = [];
|
|
forEach(this.serverless.service.functions, (value, key) => {
|
|
if (key !== 'name_template') {
|
|
this.deployedFunctions.push({
|
|
name: key,
|
|
handler: value.handler,
|
|
});
|
|
}
|
|
});
|
|
|
|
return BbPromise.resolve();
|
|
},
|
|
|
|
deployFunctions() {
|
|
return BbPromise.bind(this)
|
|
.then(this.extractFunctionHandlers);
|
|
},
|
|
};
|