Convert bundler detection steps to function

This commit is contained in:
0xmachos
2018-03-09 13:23:48 +00:00
parent 1e3b254fc9
commit 2d9ba38048

20
install
View File

@@ -110,15 +110,19 @@ fi
# * rvm: https://rvm.io/rvm/install'
#fi
info 'Detecting bundler gem...'
if command_exists bundler
then
info 'bundler gem is installed'
else
info 'Installing bundler gem'
gem install bundler
fi
check_bundler () {
info 'Detecting bundler gem...'
if command_exists bundler
then
info 'bundler gem is installed'
else
info 'Installing bundler gem'
gem install bundler
fi
}