CapX
Generates SSH command 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 [email protected]
Installation
$ gem install capx
Usage
This will add the following executable in your shell:
capx [stage] [ssh]
Examples:
$ capx staging # show ssh command
$ capx production ssh # execute ssh command