Socket
Socket
Sign inDemoInstall

capistrano-ssh-wrapper

Package Overview
Dependencies
33
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    capistrano-ssh-wrapper

[![Greenkeeper badge](https://badges.greenkeeper.io/grrr-amsterdam/capistrano-ssh-wrapper.svg)](https://greenkeeper.io/)


Version published
Weekly downloads
13
increased by62.5%
Maintainers
1
Install size
1.60 MB
Created
Weekly downloads
 

Readme

Source

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.

Keywords

FAQs

Last updated on 29 May 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc