This gem provides Capistrano 3 helper methods such as:
cap generate_db_diagram
generate db diagram for your applicationcap console:open
open Rails console on remote servercap console:open_sandbox
open Rails console on remote server in sandbox modecap db:dump
dump the current database on remote servercap db:restore_to_local
restore local database with latest dump from remote servercap db:pull
the combination ofdb:dump
anddb:restore_to_local
for a comprehensive list, please refer to cap --tasks
As this gem is extracted from several internal projects, please make sure you removed all the same-named cap tasks within your project after installed this gem, otherwise you will be surprised
Add this line to your application's Gemfile:
gem 'capistrano-helpers', :require => false
And then execute:
$ bundle
Or install it yourself as:
$ gem install capistrano-helpers
Add below to Capfile
or config/deploy.rb
:
require 'capistrano-helpers'