Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

support --env and document env vars

  • Loading branch information...
commit eb041584fe9e3bd5b505280975add9f98267f9f6 1 parent e65c839
@substack authored
Showing with 6 additions and 2 deletions.
  1. +3 −0  README.markdown
  2. +1 −0  bin/spawn.js
  3. +2 −2 package.json
View
3  README.markdown
@@ -111,6 +111,9 @@ Spin up `command` on a random drone.
You can control which drone by specifying `--drone=id`.
+Your spawned process will get the $REPO name, $COMMIT hash, $DRONE_ID, and
+$PROCESS_ID as environment variables from propagit.
+
fleet stop id
--------------
View
1  bin/spawn.js
@@ -15,6 +15,7 @@ p.hub(function (hub) {
repo : argv.repo || git.repoName(),
commit : argv.commit,
command : argv._,
+ env : argv.env || {},
};
if (!opts.repo) {
console.error('specify --repo or navigate to a git repo');
View
4 package.json
@@ -1,7 +1,7 @@
{
"name" : "fleet",
"description" : "command a cluster of processes ",
- "version" : "0.0.0",
+ "version" : "0.0.1",
"repository" : {
"type" : "git",
"url" : "git://github.com/substack/fleet.git"
@@ -32,7 +32,7 @@
"test" : "tap test/*.js"
},
"dependencies" : {
- "propagit" : "~0.4.6",
+ "propagit" : "~0.4.10",
"optimist" : "~0.3.1",
"mkdirp" : "~0.3.0"
},
Please sign in to comment.
Something went wrong with that request. Please try again.