Posted 8 months 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 to support you with this task.

As before, add the Gem to your Gemfile:

Copy
gem 'capistrano-opscomplete', require: false

And again, actually install it by calling bundle:

Copy
$ bundle

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

Copy
# Include opscomplete tasks require 'capistrano/opscomplete'

Finally - also in the Capfile - 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:

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

Owner of this card:

Avatar
Marius Schuller
Last edit:
8 months ago
by Stefan Langenmaier
Posted by Marius Schuller to opscomplete
This website uses cookies to improve usability and analyze traffic.
Accept or learn more