From ffc8490403edb908fa7de3e2ae47bd5bacb48ff3 Mon Sep 17 00:00:00 2001 From: Austen Collins Date: Tue, 15 Sep 2015 08:21:18 -0700 Subject: [PATCH] new action: improvements --- lib/commands/new_action.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/commands/new_action.js b/lib/commands/new_action.js index 6f06382cc..0bd0c35d9 100644 --- a/lib/commands/new_action.js +++ b/lib/commands/new_action.js @@ -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,