README.md in capistrano-rbenv-2.0.3 vs README.md in capistrano-rbenv-2.0.4
- old
+ new
@@ -28,9 +28,13 @@
# config/deploy.rb
set :rbenv_type, :user # or :system, depends on your rbenv setup
set :rbenv_ruby, '2.0.0-p247'
+
+ # 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.