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

shake

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

shake - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

2

package.json
{
"name":"shake",
"description":"Deployment tool for node",
"version":"0.0.5",
"version":"0.0.6",
"homepage":"http://github.com/wearefractal/shake",

@@ -6,0 +6,0 @@ "repository":"git://github.com/wearefractal/shake.git",

@@ -81,4 +81,4 @@ ## Information

status: (local, remote, done) ->
remote.exec "ps -eo args | grep '#{app.name}' | grep -v grep", (err, res) ->
done err, if res then "Online" else "Offline"
remote.exec "ps -eo args | grep '#{app.name}' | grep -v grep", (res) ->
done if res then "Online" else "Offline"
```

@@ -93,8 +93,6 @@

sometask: (local, remote, done) ->
local.exec "whoami", (err, res) ->
# err = stderr
# res = stdout
local.run "whoami", "ls -la", (err, res) ->
# err = array of errors
# res = array of responses
local.exec "whoami", (res) ->
# res = array of stdout+stderr
local.run "whoami", "ls -la", (res) ->
# res = array of .exec res objects
# .run is for executing multiple commands where you need the response

@@ -106,8 +104,8 @@

mkdir test
""", (err, res) ->
# err = stderr for all commands
# res = stdout for all commands
# .exec will handle multiple commands if you don't care about the result
""", (res) ->
# res = array of stdout+stderr
# .exec will handle multiple commands if you dont care about each
# having its own res object
done err, res # Call this when the task is finished - logs its arguments
done res # Call this when the task is finished - logs its arguments
```

@@ -114,0 +112,0 @@

Sorry, the diff of this file is not supported yet

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