mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
new action: improvements
This commit is contained in:
parent
d4e10a6222
commit
ffc8490403
@ -20,7 +20,6 @@ Promise.promisifyAll(fs);
|
||||
*/
|
||||
|
||||
module.exports.run = function(JAWS, action) {
|
||||
console.log(JAWS);
|
||||
var command = new CMD(JAWS, action);
|
||||
return command.run();
|
||||
};
|
||||
@ -116,14 +115,15 @@ CMD.prototype._createSkeleton = Promise.method(function() {
|
||||
actionJson.name = _this._action.resource + '-' + _this._action.action;
|
||||
actionJson.apiGateway.cloudFormation.Path = _this._action.resource + '/' + _this._action.action;
|
||||
actionJson.apiGateway.cloudFormation.Method = 'GET';
|
||||
actionJson.apiGateway.cloudFormation.Type = 'AWS';
|
||||
|
||||
// Create files for lambda actions
|
||||
switch (_this._action.cloudFormation.Runtime) {
|
||||
switch (_this._action.runtime) {
|
||||
case 'nodejs':
|
||||
|
||||
// Edit jaws.json
|
||||
actionJson.lambda.runtimeVer = '0.10.36';
|
||||
actionJson.lambda.handler = path.join(
|
||||
actionJson.lambda.cloudFormation.Runtime = 'nodejs';
|
||||
actionJson.lambda.cloudFormation.Handler = path.join(
|
||||
'lambdas',
|
||||
_this._action.resource,
|
||||
_this._action.action,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user