Skip to content
This repository has been archived by the owner on May 8, 2019. It is now read-only.

Commit

Permalink
Fixed folder length
Browse files Browse the repository at this point in the history
  • Loading branch information
kuashe committed Aug 22, 2017
1 parent 9da2460 commit 726c22b
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 15 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,5 @@ node_modules
test/project/node_modules
local/
test/include
test/project/exclude
test/project/exclude
test/project/.serverless/
2 changes: 1 addition & 1 deletion modules/filesystem.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function waitForFiles( path , callback ){

readdir(path , function(err,filesInFolder){

if(filesInFolder.length == 3)
if(filesInFolder.length == 4)
{
clearInterval(interval)
callback()
Expand Down
1 change: 1 addition & 0 deletions test/project/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# package directories
node_modules
.serverless
Binary file modified test/project/.serverless/aws-nodejs.zip
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
"S3Bucket": {
"Ref": "ServerlessDeploymentBucket"
},
"S3Key": "serverless/aws-nodejs/dev/1503331592072-2017-08-21T16:06:32.072Z/aws-nodejs.zip"
"S3Key": "serverless/aws-nodejs/dev/1503386445033-2017-08-22T07:20:45.033Z/aws-nodejs.zip"
},
"FunctionName": "aws-nodejs-dev-hello",
"Handler": "handler.hello",
Expand All @@ -111,14 +111,14 @@
"IamRoleLambdaExecution"
]
},
"HelloLambdaVersionJmeuSGzLNuFgtBIBt36JnyQgXQ6TSauDETCeOK7aIJA": {
"HelloLambdaVersion7p4NexYRuzOsoomEZEP4W10mCzDeqTdtfySKqRUpn8": {
"Type": "AWS::Lambda::Version",
"DeletionPolicy": "Retain",
"Properties": {
"FunctionName": {
"Ref": "HelloLambdaFunction"
},
"CodeSha256": "JmeuSGzLNuFgtBIBt36JnyQgXQ6TSauDETCeOK7aIJA="
"CodeSha256": "7p4NexYRuzOs/oomEZEP4W10mCzDeqTdtfySKqRUpn8="
}
}
},
Expand All @@ -131,7 +131,7 @@
"HelloLambdaFunctionQualifiedArn": {
"Description": "Current Lambda function version",
"Value": {
"Ref": "HelloLambdaVersionJmeuSGzLNuFgtBIBt36JnyQgXQ6TSauDETCeOK7aIJA"
"Ref": "HelloLambdaVersion7p4NexYRuzOsoomEZEP4W10mCzDeqTdtfySKqRUpn8"
}
}
}
Expand Down
15 changes: 9 additions & 6 deletions test/project/.serverless/serverless-state.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
"S3Bucket": {
"Ref": "ServerlessDeploymentBucket"
},
"S3Key": "serverless/aws-nodejs/dev/1503331592072-2017-08-21T16:06:32.072Z/aws-nodejs.zip"
"S3Key": "serverless/aws-nodejs/dev/1503386445033-2017-08-22T07:20:45.033Z/aws-nodejs.zip"
},
"FunctionName": "aws-nodejs-dev-hello",
"Handler": "handler.hello",
Expand All @@ -125,14 +125,14 @@
"IamRoleLambdaExecution"
]
},
"HelloLambdaVersionJmeuSGzLNuFgtBIBt36JnyQgXQ6TSauDETCeOK7aIJA": {
"HelloLambdaVersion7p4NexYRuzOsoomEZEP4W10mCzDeqTdtfySKqRUpn8": {
"Type": "AWS::Lambda::Version",
"DeletionPolicy": "Retain",
"Properties": {
"FunctionName": {
"Ref": "HelloLambdaFunction"
},
"CodeSha256": "JmeuSGzLNuFgtBIBt36JnyQgXQ6TSauDETCeOK7aIJA="
"CodeSha256": "7p4NexYRuzOs/oomEZEP4W10mCzDeqTdtfySKqRUpn8="
}
}
},
Expand All @@ -145,7 +145,7 @@
"HelloLambdaFunctionQualifiedArn": {
"Description": "Current Lambda function version",
"Value": {
"Ref": "HelloLambdaVersionJmeuSGzLNuFgtBIBt36JnyQgXQ6TSauDETCeOK7aIJA"
"Ref": "HelloLambdaVersion7p4NexYRuzOsoomEZEP4W10mCzDeqTdtfySKqRUpn8"
}
}
}
Expand All @@ -168,6 +168,9 @@
},
"vpc": {}
},
"plugins": [
"serverless-async-await"
],
"functions": {
"hello": {
"handler": "handler.hello",
Expand All @@ -177,10 +180,10 @@
"vpc": {}
}
},
"artifact": "C:\\Users\\Quantum\\Google Drive\\Projets\\Experiment\\serverless-async-await\\test\\project\\.serverless\\aws-nodejs.zip"
"artifact": "C:\\Users\\Quantum\\Google Drive\\Projets\\Experiment\\serverless-async-await\\test\\project\\__build__\\.serverless\\aws-nodejs.zip"
},
"package": {
"artifactDirectoryName": "serverless/aws-nodejs/dev/1503331592072-2017-08-21T16:06:32.072Z",
"artifactDirectoryName": "serverless/aws-nodejs/dev/1503386445033-2017-08-22T07:20:45.033Z",
"artifact": "aws-nodejs.zip"
}
}
2 changes: 1 addition & 1 deletion test/project/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
"author": "",
"license": "ISC",
"dependencies": {
"serverless-async-await": "^1.1.0"
"serverless-async-await": "^1.1.3"
}
}
4 changes: 2 additions & 2 deletions test/project/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ service: aws-nodejs # NOTE: update this with your service name
# You can pin your service to only deploy with a specific Serverless version
# Check out our docs for more details
# frameworkVersion: "=X.X.X"
#plugins:
# - serverless-async-await
plugins:
- serverless-async-await

provider:
name: aws
Expand Down

0 comments on commit 726c22b

Please sign in to comment.