ServerlessMeta: skip over hidden files when loading #578

This commit is contained in:
ac360 2016-02-10 14:41:42 -08:00
parent 6670cd72eb
commit a95d434d4e
2 changed files with 4 additions and 1 deletions

View File

@ -49,6 +49,9 @@ class ServerlessMeta
for (let i = 0; i < variableFiles.length; i++) {
// Skip unrelated and hidden files
if (!variableFiles[i] || variableFiles[i].charAt(0) === '.' || variableFiles[i].indexOf('s-variables') == -1) continue;
let variableFile = SUtils.readAndParseJsonSync(path.join(_this._S.config.projectPath, '_meta', 'variables', variableFiles[i]));
// Parse file name to get stage/region

View File

@ -121,7 +121,7 @@ describe('Test Action: Function Deploy', function() {
});
});
describe('Function Deploy: Nested W/ Name Template', function() {
describe('Function Deploy: Nested W/ Custom Name', function() {
it('should deploy functions', function(done) {
this.timeout(0);