sshkit v0.0.1 SSHKit

A toolkit for performing tasks on one or more servers.

hosts = ["1.eg.io", {"2.eg.io", port: 2222}]
hosts = [%SSHKit.Host{name: "3.eg.io", options: [port: 2223]} | hosts]

context =
  SSHKit.context(hosts)
  |> SSHKit.pwd("/var/www/phx")
  |> SSHKit.user("deploy")
  |> SSHKit.group("deploy")
  |> SSHKit.umask("022")
  |> SSHKit.env(%{"NODE_ENV" => "production"})

:ok = SSHKit.upload(context, ".", recursive: true)
:ok = SSHKit.run(context, "yarn install", mode: :parallel)

Summary

Functions

context(hosts)
env(context, map)
group(context, name)
host(arg1)
host(name, options \\ [])
pwd(context, path)
run(context, command)
umask(context, mask)
user(context, name)