Project

capx

0.0
No commit activity in last 3 years
No release in over 3 years
Generates SSH command using capistrano deploy configuration.. SSH username and host are parsed from capistrano deploy configuration
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies
 Project Readme

CapX

Generates SSH commands using capistrano deploy configuration.
SSH username and host are parsed from capistrano deploy configuration.

capistrano deploy configuration:

server 'dev.example.com', user: 'deploy', roles: %w{web app db}, primary: true

generated SSH command:

$ ssh deploy@dev.example.com

Installation

$ gem install capx

Usage

This will add the following executable in your shell:

capx [stage] [ssh|disk|info|redis] [user]

Examples:

$ capx staging  # show ssh command
$ capx production ssh  # execute ssh command
$ capx production ssh root # execute ssh command with root user
$ capx production disk # execute ssh 'df -H' command
$ capx production redis # execute ssh 'redis-cli INFO keyspace' command