Comparing version 0.0.3 to 0.0.4
@@ -38,3 +38,3 @@ require('colors'); | ||
console.log('[%s] Pull starting.'.green, setup.name); | ||
var cmd = 'cd ' + setup.destination + '; git pull;'; | ||
var cmd = 'cd ' + setup.destination + '; git checkout master; git pull;'; | ||
@@ -47,3 +47,3 @@ s.run(cmd, function(stream) { | ||
stream.on('exit', function(code, signal) { | ||
if(code !== 0 && code !== 128) { | ||
if(code !== 0) { | ||
throw new Error('[' + setup.name + '] Pull failed! (' + code + ')'); | ||
@@ -105,3 +105,3 @@ } else { | ||
if(setup.npmscript) start = 'npm run ' + setup.npmscript + ';'; | ||
var cmd = processEnv(setup) + 'cd ' + setup.destination + ';' + start; | ||
var cmd = 'cd ' + setup.destination + '; ' + processEnv(setup) + start; | ||
@@ -127,3 +127,3 @@ s.run(cmd, function(stream) { | ||
if(setup.restartscript) restart = 'npm run ' + setup.restartscript + ';'; | ||
var cmd = processEnv(setup) + 'cd ' + setup.destination + ';' + restart; | ||
var cmd = 'cd ' + setup.destination + ';' + restart; | ||
@@ -149,3 +149,3 @@ s.run(cmd, function(stream) { | ||
if(setup.restartscript) stop = 'npm run ' + setup.restartscript + ';'; | ||
var cmd = processEnv(setup) + 'cd ' + setup.destination + ';' + stop; | ||
var cmd = 'cd ' + setup.destination + ';' + stop; | ||
@@ -152,0 +152,0 @@ s.run(cmd, function(stream) { |
{ | ||
"name" : "establish" | ||
, "version" : "0.0.3" | ||
, "version" : "0.0.4" | ||
, "homepage" : "http://github.com/apocas" | ||
@@ -5,0 +5,0 @@ , "description" : "Establish, a nodejs stupid simple git and ssh based deployment tool." |
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
14094