Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mdsn/deploy

A small set of combinators to build input to be written to ssh
https://github.com/mdsn/deploy

Last synced: about 2 months ago
JSON representation

A small set of combinators to build input to be written to ssh

Awesome Lists containing this project

README

        

# deploy
A small set of combinators to write lines of input through ssh

# installation
Run `stack install`.

# usage
Commands are built from lines of input to be written to the server. Use <> for
command composition.

Write new commands using the `command` function:
```
let which x = command $ format ("which "%s) x
```

Run a chain of commands with the `run` function, which takes a hostname to
connect to.

```
> let c = which "python" <> cd "/etc" <> ls <> command "whoami"
> run "hostname" c
```