mdsn / deploy

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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

License:GNU General Public License v2.0


Languages

Language:Haskell 100.0%