dynamodb-localhost
Advanced tools
Comparing version 0.0.3 to 0.0.4
19
index.js
@@ -10,4 +10,7 @@ 'use strict'; | ||
var dynamodb = { | ||
install: function (callback) { | ||
installer.install(config, function (msg) { | ||
install: function(callback, path) { | ||
if (path) { | ||
config.setup.install_path = path; | ||
} | ||
installer.install(config, function(msg) { | ||
console.log(msg); | ||
@@ -17,3 +20,3 @@ callback(); | ||
}, | ||
start: function (options) { | ||
start: function(options) { | ||
var instance = starter.start(options, config); | ||
@@ -24,3 +27,3 @@ dbInstances[instance.port] = { | ||
}; | ||
instance.proc.on('close', function (code) { | ||
instance.proc.on('close', function(code) { | ||
if (code !== null && code !== 0) { | ||
@@ -32,3 +35,3 @@ console.log('DynamoDB Local failed to start with code', code); | ||
}, | ||
stop: function (port) { | ||
stop: function(port) { | ||
if (dbInstances[port]) { | ||
@@ -39,3 +42,3 @@ dbInstances[port].process.kill('SIGKILL'); | ||
}, | ||
restart: function (port) { | ||
restart: function(port) { | ||
var options = dbInstances[port].options; | ||
@@ -46,4 +49,4 @@ this.stop(port); | ||
}, | ||
remove: function (callback) { | ||
utils.removeDir(config.setup.install_path, function () { | ||
remove: function(callback) { | ||
utils.removeDir(config.setup.install_path, function() { | ||
console.log("Successfully removed dynamodb local!"); | ||
@@ -50,0 +53,0 @@ callback(); |
{ | ||
"name": "dynamodb-localhost", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"engines": { | ||
@@ -5,0 +5,0 @@ "node": ">=4.0" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14829
192
10