Add RVM (Ruby Version Manager) to setup

This commit is contained in:
Mateusz Swiszcz 2021-03-05 23:30:17 +01:00 committed by Elliot Winkler
parent 0cc461d4d9
commit 0e8c059759
1 changed files with 5 additions and 0 deletions

View File

@ -241,6 +241,11 @@ ensure-ruby-installed() {
error "Please use chruby to install Ruby $REQUIRED_RUBY_VERSION!"
fi
fi
elif has-executable rvm; then
if ! (rvm list | grep $REQUIRED_RUBY_VERSION'\>' &>/dev/null); then
banner "Installing Ruby $REQUIRED_RUBY_VERSION with rvm"
rvm install $REQUIRED_RUBY_VERSION
fi
else
error "You don't seem to have a Ruby manager installed."
print-wrapped "\