/usr/lib/ruby/vendor_ruby/mina/rbenv.rb is in mina 0.3.7-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | # # Modules: rbenv
# Adds settings and tasks for managing [rbenv] installations.
#
# [rbenv]: https://github.com/sstephenson/rbenv
#
# require 'mina/rbenv'
#
# ## Common usage
#
# task :environment do
# invoke :'rbenv:load'
# end
#
# task :deploy => :environment do
# ...
# end
# ## Settings
# Any and all of these settings can be overriden in your `deploy.rb`.
# ### rbenv_path
# Sets the path where *rbenv* is installed.
#
# You may override this if rbenv is placed elsewhere in your setup.
set_default :rbenv_path, "$HOME/.rbenv"
# ## Tasks
# ### rbenv:load
# Loads the *rbenv* runtime.
task :'rbenv:load' do
queue %{
echo "-----> Loading rbenv"
#{echo_cmd %{export RBENV_ROOT="#{rbenv_path}"}}
#{echo_cmd %{export PATH="#{rbenv_path}/bin:$PATH"}}
if ! which rbenv >/dev/null; then
echo "! rbenv not found"
echo "! If rbenv is installed, check your :rbenv_path setting."
exit 1
fi
#{echo_cmd %{eval "$(rbenv init -)"}}
}
end
|