Capistrano: Install capistrano-opscomplete
As before, add the Gem to your
gem 'capistrano-opscomplete', require: false
And again, actually install it by calling
Now make the tasks the Gem provides available to you during deploy by adding the following to your
# 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'