Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
This gem provides idiomatic rbenv support for Capistrano 3.x (and 3.x only).
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.
Add this line to your application's Gemfile:
gem 'capistrano', '~> 3.9'
gem 'capistrano-rbenv', '~> 2.2'
And then execute:
$ bundle install
# 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.
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.
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that capistrano-rbenv demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.