mirror of
https://github.com/YunoHost-Apps/fab-manager_ynh.git
synced 2024-09-03 18:36:16 +02:00
Update ynh_install_ruby__2 from mastodon
This commit is contained in:
parent
ea5e35b8ce
commit
4458ef45cd
1 changed files with 187 additions and 187 deletions
|
@ -36,7 +36,7 @@ build_pkg_dependencies="$build_pkg_dependencies $build_ruby_dependencies"
|
||||||
# However, $PATH is duplicated into $ruby_path to outlast any manipulation of $PATH
|
# However, $PATH is duplicated into $ruby_path to outlast any manipulation of $PATH
|
||||||
# You can use the variable `$ynh_ruby_load_path` to quickly load your Ruby version
|
# You can use the variable `$ynh_ruby_load_path` to quickly load your Ruby version
|
||||||
# in $PATH for an usage into a separate script.
|
# in $PATH for an usage into a separate script.
|
||||||
# Exemple: $ynh_ruby_load_path $final_path/script_that_use_gem.sh`
|
# Exemple: $ynh_ruby_load_path $install_dir/script_that_use_gem.sh`
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# Finally, to start a Ruby service with the correct version, 2 solutions
|
# Finally, to start a Ruby service with the correct version, 2 solutions
|
||||||
|
@ -81,7 +81,7 @@ ynh_use_ruby () {
|
||||||
ynh_ruby_load_path="PATH=$PATH"
|
ynh_ruby_load_path="PATH=$PATH"
|
||||||
|
|
||||||
# Sets the local application-specific Ruby version
|
# Sets the local application-specific Ruby version
|
||||||
pushd $final_path
|
pushd $install_dir
|
||||||
$rbenv_install_dir/bin/rbenv local $ruby_version
|
$rbenv_install_dir/bin/rbenv local $ruby_version
|
||||||
popd
|
popd
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue