Permalink
Browse files

updated readme with example output for commands

  • Loading branch information...
1 parent 043e815 commit 0554051f9b27efe7317369e34a9924fe6a17e056 @substack committed Mar 7, 2012
Showing with 39 additions and 0 deletions.
  1. +39 −0 README.markdown
View
@@ -99,11 +99,29 @@ fleet deploy
From a git directory, push the top commit from `git log` and check out the code
on all the drones in an isolated directory based on the commit hash.
+```
+$ fleet deploy
+deployed webapp/1b8050fcaf8f1b02b9175fcb422644cb67dc8cc5
+```
+
fleet ps
--------
List the processes running on all the drones.
+```
+$ fleet ps
+drone#3dfe17b8
+├─┬ pid#1e99f4
+│ ├── status: running
+│ ├── commit: webapp/1b8050fcaf8f1b02b9175fcb422644cb67dc8cc5
+│ └── command: node server.js 8888
+└─┬ pid#d7048a
+ ├── status: running
+ ├── commit: webapp/1b8050fcaf8f1b02b9175fcb422644cb67dc8cc5
+ └── command: node server.js 8889
+```
+
fleet spawn OPTIONS -- command...
---------------------------------
@@ -114,15 +132,36 @@ 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 spawn -- node server.js 8888
+(spawned a25d7033#edc743)
+```
+
fleet stop id0 [id1, id2...]
----------------------------
Stop processes. Get each `id` by running `fleet ps`. It doesn't matter which
drone the process is running on, fleet spams the request out to all the drones
and ignores the request if the drone doesn't have the requested process id.
+Leading `'pid#'` strings are ignored on ids so you can more easily copy the pids
+from `fleet ps` output.
+
+```
+fleet stop 1e99f4 d7048a
+[3dfe17b8] stopped 1e99f4 d7048a
+```
+
fleet monitor
-------------
Show all spawn, exit, stdout, and stderr events happening everywhere across all
of the drones.
+
+```
+$ fleet monitor
+(spawned 3dfe17b8#1e99f4 : node server.js 8888)
+[3dfe17b8#1e99f4] listening on :8888
+(exited 3dfe17b8#751e9f : node server.js 8889)
+(spawned 3dfe17b8#d7048a : node server.js 8889)
+```

0 comments on commit 0554051

Please sign in to comment.