0.0
No commit activity in last 3 years
No release in over 3 years
Add the capability to run Robo tasks on Capistrano 3.X
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.7
~> 10.0

Runtime

 Project Readme

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
  1. Add to Capfile or config/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

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request