hyperlapse
Distributed process manager. Listens on a hypercore feed for JSON commands to execute on the host machine using psy.
CLI API
Usage: $ hyperlapse <command> [options] Commands: listen <hypercore key> Listen for commands and print a log key append <hypercore key> <command> Append commands onto a feed list <hypercore key> Print the services on a machine Process commands: start <package-name@version> Boot up a service on the host machine stop remove restart Options: -h, --help Print usage -v, --version Print version
JS API
var hyperlapse = var normcore = // the command feed usually lives remotelyvar commandFeed = var commandKey = commandFeedkey var inFeed = var outFeed = outFeedvar outKey = outFeedkeyconsole commandFeed
Process commands
Start
Start a new process on the machine.
Stop
Stop a process on the machine
Restart
Restart a process on the machine
Remove
Remove a process on the machine
API
agent = hyperlapse(inFeed, outFeed)
Create a new agent that tails a hypercore
. Reads commands from the inFeed
and logs its output to the outFeed
.
Installation
$ npm install hyperlapse