rynop / dynamodb-local

A wrapper for AWS DynamoDB Local, intended for use in testcases
MIT License
52 stars 30 forks source link

fixed passing in multiple additional args: #8

Closed shanebdavis closed 8 years ago

shanebdavis commented 8 years ago

FIXED: DynamoDbLocal.launch dynamoLocalPort, null, ["-sharedDb", "-cors", "'*'"]

I was a little confused by the line I fixed. It wraps another array around the additionalArgs if, and only if, it is already an array. I'm guessing this line was intended to accept a single string argument and convert it into an array - thus I added a "!" in front. This also solve my problem - I wanted to pass in multiple args.

doapp-ryanp commented 8 years ago

Thanks!