Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

establish

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

establish - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

10

lib/workflow.js

@@ -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."

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc