#!/usr/bin/env bash ruby_status=$(rbenv version |& awk '{ printf $4 " " $5 " " $6 }'|sed -r 's/[ ]+$//') echo \"${ruby_status}\" if [[ "${ruby_status}" == "is not installed" ]] then rbenv install $(cat .ruby-version) gem install bundler --no-ri --no-rdoc bundle config build.sqlite3 --with-sqlite3-dir=/usr/local fi bundle install --without=production if [ $? ]; then bundle exec rake dev:setup fi