blob: 2fa783d29904b51e53cb09ad3d7614d0a549ca89 (
plain) (
tree)
|
|
#!/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
|