Description
This gem provides idiomatic rbenv support for Capistrano 3.x only.
Capistrano rbenv alternatives and similar gems
Based on the "DevOps Tools" category.
Alternatively, view Capistrano rbenv alternatives based on common mentions on social networks and blogs.
-
Chef
Chef Infra, a powerful automation platform that transforms infrastructure into code automating how infrastructure is configured, deployed and managed across any environment, at any scale -
BOSH
Cloud Foundry BOSH is an open source tool chain for release engineering, deployment and lifecycle management of large scale distributed services. -
Request-log-analyzer
Create reports based on your log files. Supports Rails, Apache, MySQL, Delayed::Job, and other formats. -
Rubber
A capistrano/rails plugin that makes it easy to deploy/manage/scale to various service providers, including EC2, DigitalOcean, vSphere, and bare metal servers. -
Einhorn
DISCONTINUED. Einhorn will open one or more shared sockets and run multiple copies of your process. You can seamlessly reload your code, dynamically reconfigure Einhorn, and more. -
itamae
Configuration management tool inspired by Chef, but simpler and lightweight. Formerly known as Lightchef. -
Blender
DISCONTINUED. A modular system orchestration framework with pluggable driver and host discovery. -
Kanrisuru
Kanrisuru helps you manage your remote servers with objected oriented ruby. Results come back as structured data, parsed, prepared and ready for you to easily use in your applications.
CodeRabbit: AI Code Reviews for Developers

* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of Capistrano rbenv or a related project?
README
Capistrano::rbenv
This gem provides idiomatic rbenv support for Capistrano 3.x (and 3.x only).
Please Note
If you want to use this plugin with Cap 2.x, please use 1.x version of the gem. Source code and docs for older integration is available in another repo
Thanks a lot to @yyuu for merging his gem with official one.
Installation
Add this line to your application's Gemfile:
gem 'capistrano', '~> 3.9'
gem 'capistrano-rbenv', '~> 2.2'
And then execute:
$ bundle install
Usage
# Capfile
require 'capistrano/rbenv'
# config/deploy.rb
set :rbenv_type, :user # or :system, or :fullstaq (for Fullstaq Ruby), depends on your rbenv setup
set :rbenv_ruby, '2.4.2'
# in case you want to set ruby version from the file:
# set :rbenv_ruby, File.read('.ruby-version').strip
set :rbenv_prefix, "RBENV_ROOT=#{fetch(:rbenv_path)} RBENV_VERSION=#{fetch(:rbenv_ruby)} #{fetch(:rbenv_path)}/bin/rbenv exec"
set :rbenv_map_bins, %w{rake gem bundle ruby rails}
set :rbenv_roles, :all # default value
If your rbenv is located in some custom path, you can use rbenv_custom_path
to set it.
Defining the ruby version
To set the Ruby version explicitly, add :rbenv_ruby
to your Capistrano configuration:
# config/deploy.rb
set :rbenv_ruby, '2.4.2'
Alternatively, allow the remote host's rbenv
to determine the appropriate Ruby version by omitting :rbenv_ruby
. This approach is useful if you have a .ruby-version
file in your project.
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