master
 1git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
 2echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
 3echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
 4source ~/.bash_profile
 5git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
 6git clone https://github.com/tpope/rbenv-ctags.git ~/.rbenv/plugins/rbenv-ctags
 7git clone https://github.com/rkh/rbenv-update.git ~/.rbenv/plugins/rbenv-update
 8git clone https://github.com/sstephenson/rbenv-gem-rehash.git ~/.rbenv/plugins/rbenv-gem-rehash
 9rbenv update
10rbenv install 2.4.2
11rbenv global 2.4.2
12gem install bundler --no-ri --no-rdoc
13rbenv rehash
14cd /vagrant
15bundle install -j 4 --path vendor/bundle
16rbenv rehash
17if [ ! -f config/database.yml ]; then
18  ln -s config/database.yml.vagrant config/database.yml
19fi
20if [ ! -f .env ]; then
21  ln -s .env.example .env
22fi
23createdb
24bundle exec rake db:create db:migrate db:seed
25RAILS_ENV=test bundle exec rake db:create db:migrate db:seed