0.1.1 • Published 11 years ago

fake-dynamo-gem v0.1.1

Weekly downloads
1
License
-
Repository
github
Last release
11 years ago

fake-dynamo-gem

Build Status

A node.js wrapper for the fake_dynamo gem.

For testing purposes mainly - and just because magneto isn't quite as mature yet.

Example

var fakeDynamoGem = require('fake-dynamo-gem')

fakeDynamoGem(function(err, fakeDynamo) {
  if (err) throw err

  // We have now spawned fake_dynamo with the default settings (port 4567)
  // fakeDynamo is just a standard ChildProcess object

  // Kill it when we're done testing (will also kill on process exit)
  fakeDynamo.kill()
})

// Can also pass custom args
fakeDynamoGem(['--port=1234', '--db=/tmp/fake_dynamo.fdb'], function(err, fakeDynamo) {
  if (err) throw err

  fakeDynamo.kill()
})

Also provides a nfakedynamo binary, which just delegates directly to fake_dynamo

API

fakeDynamoGem(spawnArgs, spawnOptions, callback)

Spawns fake_dynamo with the given args/options (requires Ruby 1.9 I believe)

Installation

With npm do:

npm install fake-dynamo-gem

Thanks

Thanks to @ananthakumaran for the great fake_dynamo project!

0.1.1

11 years ago

0.1.0

11 years ago

0.0.9

11 years ago

0.0.8

11 years ago

0.0.7

11 years ago

0.0.6

11 years ago

0.0.5

11 years ago

0.0.4

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago