Capistrano::Robo
This gem will let you run Robo tasks with Capistrano 3.x.
Installation
Add this line to your application's Gemfile:
gem 'capistrano', '~> 3.1'
gem 'capistrano-robo'
And then execute:
$ bundle install
- Add to
Capfile
orconfig/deploy.rb
:
require 'capistrano/robo'
Usage
To run tasks:
after :updated, :test do
invoke :robo, 'test'
end
You can pass additional parameters if needed:
after :updated, :migrate do
invoke :robo, 'migrations:migrate', 'production'
end
The above would be equivalent of running the following from the command line:
robo -v migrations:migrate production
Configuration
To specify where the Robo executable is, use the :robo_exec
option:
set :robo_exec, 'bin/robo'
Configurable options:
set :robo_exec, 'robo' # default
set :robo_flags, '-v' # default
set :robo_roles, :all # default
set :robo_target_path, -> { release_path } # default
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request