Posted over 3 years ago. Visible to the public.

Capistrano: Install capistrano-opscomplete

As it's possible that you manage the Ruby version by yourself we created the capistrano-opscomplete Gem Archive to support you with this task.

As before, add the Gem to your Gemfile:

gem 'capistrano-opscomplete', require: false

And again, actually install it by calling bundle:

$ bundle

Now make the tasks the Gem provides available to you during deploy by adding the following to your Capfile:

# Include opscomplete tasks require 'capistrano/opscomplete'

Finally in your config/deploy.rb add the following hook which checks if the Ruby version in your .ruby-version file is already available and install it, if that's not the case:

# Install new Ruby version if not already installed after 'deploy:updating', 'opscomplete:ruby:ensure'

Your development team has a full backlog of feature requests, chores and refactoring coupled with deadlines? We are familiar with that. With our "DevOps as a Service" offering, we support developer teams with infrastructure and operations expertise.

Owner of this card:

Marius Schuller
Last edit:
about 1 year ago
by Henning Koch
About this deck:
We are makandra and do test-driven, agile Ruby on Rails software development.
License for source code
Posted by Marius Schuller to opscomplete
This website uses short-lived cookies to improve usability.
Accept or learn more