From d54f5aa167c86ea37f37edebd1d4a1d9a768c947 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Mon, 20 May 2024 23:48:05 +0200 Subject: [PATCH] Use standard ruby helpers --- scripts/_common.sh | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index b9d10b1..43b7307 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -12,29 +12,6 @@ node_max_old_space_size=2048 # PERSONAL HELPERS #================================================= -# Remove the version of Ruby used by the app. -# -# This helper will also cleanup Ruby versions -# -# usage: ynh_remove_ruby -ynh_remove_ruby () { - local ruby_version=$(ynh_app_setting_get --app="$YNH_APP_INSTANCE_NAME" --key=ruby_version) - - # Load rbenv path in PATH - local CLEAR_PATH="$rbenv_install_dir/bin:$PATH" - - # Remove /usr/local/bin in PATH in case of Ruby prior installation - PATH="$(echo "$CLEAR_PATH" | sed 's@/usr/local/bin:@@')" - - rbenv alias "$YNH_APP_INSTANCE_NAME" --remove - - # Remove the line for this app - ynh_app_setting_delete --app="$YNH_APP_INSTANCE_NAME" --key=ruby_version - - # Cleanup Ruby versions - ynh_cleanup_ruby -} - #================================================ # EXPERIMENTAL HELPERS #=================================================