Comparing version 0.0.5 to 0.0.6
{ | ||
"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
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
1
8422
134