The latest OS RubyGems package is 2.x. The version of Bundler we update
to requires 3.x. Use RubyGems to update itself to more recent version
than available in OS packages.
Change-Id: I90e7bcf12b9ef986f5002a32fea701cfe5db96fb
Jira: INTPAK-230
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
bash -lc "rvm use 2.4.0 --default"
ruby --version
+# Update RubyGems using itself, as OS package may be old
+# Ran into RubyGems 2.x installed by OS, 3.x required by Bundler in INTPAK-230
+gem update --system
+
# Install gems dependencies of puppet-opendaylight via Bundler
gem install bundler
echo export PATH="\\$PATH:/usr/local/bin" >> "$HOME/.bashrc"