#!/usr/bin/env bash if [ -f "../lib/utils.sh" ]; then source "../lib/utils.sh" else echo "You must have utils.sh to run. Exiting." exit fi # Set Variables LISTINSTALLED="gem list | awk '{print $1}'" INSTALLCOMMAND="gem install" RUBYVERSION="2.1.2" # Check for RVM if type_not_exists "rvm"; then seek_confirmation "Install RVM?" if is_confirmed; then warning "Installing RVM (Ruby Version Manager) and Ruby which becomes the default ..." curl -L https://get.rvm.io | bash -s stable source "~/.rvm/scripts/rvm" fi fi #Install Ruby if type_exists "rvm"; then seek_confirmation "You have RVM already. Check for a newer version?" if is_confirmed; then source $HOME/.bash_profile #rvm get stable --autolibs=enable rvm install $RUBYVERSION rvm use $RUBYVERSION --default fi fi RECIPES=( bundler classifier compass digest fileutils jekyll kramdown kss less logger mini_magick rake reduce s3_website sass smusher ) # Run Functions hasHomebrew doInstall #update gems gem update --system gem update