From 5791e69508f4fcbc332e35fdb6bafd61748aa1df Mon Sep 17 00:00:00 2001 From: Michael McManus Date: Wed, 16 Mar 2016 12:49:28 -0700 Subject: [PATCH] Fixes #813 and #814 * More narrowly define default function excludePatterns * Correct reference to undefined properties in `Runtime._validateAndPrepare()` --- lib/Runtime.js | 2 +- lib/actions/CodeDeployLambda.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/Runtime.js b/lib/Runtime.js index b90e86c60..684d6a039 100644 --- a/lib/Runtime.js +++ b/lib/Runtime.js @@ -192,7 +192,7 @@ module.exports = function(S) { // Copy entire test project to temp folder, don't include anything in excludePatterns let excludePatterns = func.custom.excludePatterns || []; - excludePatterns = excludePatterns.concat(['_meta', 'admin.env', '.env']); + excludePatterns = excludePatterns.concat(['_meta', 'admin\.env$', '\.env$']); return function (name, prefix) { diff --git a/lib/actions/CodeDeployLambda.js b/lib/actions/CodeDeployLambda.js index ca72829ef..5597b201b 100644 --- a/lib/actions/CodeDeployLambda.js +++ b/lib/actions/CodeDeployLambda.js @@ -84,9 +84,9 @@ module.exports = function(S) { // TODO: Validate Options // Instantiate Classes - _this.aws = _this.S.getProvider(); - _this.project = _this.S.getProject(); - _this.function = _this.S.getProject().getFunction( _this.evt.options.name ); + _this.aws = S.getProvider(); + _this.project = S.getProject(); + _this.function = S.getProject().getFunction( _this.evt.options.name ); _this.functionPopulated = _this.function.toObjectPopulated({ stage: _this.evt.options.stage, region: _this.evt.options.region }); // Set default function name