Skip to content

jankmet/capx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

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

About

capistrano shell extension for ssh

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages