Skip to content

Commit

Permalink
Add RVM (Ruby Version Manager) to setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateusz Swiszcz authored and mcmire committed Mar 8, 2021
1 parent 0cc461d commit 0e8c059
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/setup
Expand Up @@ -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 "\
Expand Down

0 comments on commit 0e8c059

Please sign in to comment.