1.0.12 • Published 7 years ago

capistrano-ssh-wrapper v1.0.12

Weekly downloads
14
License
MIT
Repository
github
Last release
7 years ago

Capistrano SSH Wrapper

Executes a shell command over SSH, using a connection from a local Capistrano configuration file.

Greenkeeper badge

Methods

.exec(string target, string command)

Executes a command over SSH. Expects a target name of the environment. It will look for [environment name].rb for a Capistrano configuration in your local path.

It will then execute a one-off command over SSH.

Returns a Promise containing the stdout output, or stderr in case of an error.

For now, it expects you to authenticate with a private key in ~/.ssh/id_rsa.

.getFile(string target, string path)

Returns the content of a file over SSH. Expects a target name of the environment. It will look for [environment name].rb for a Capistrano configuration in your local path.

Returns a Promise containing the stdout output, or stderr in case of an error.

For now, it expects you to authenticate with a private key in ~/.ssh/id_rsa.

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago