Skip to content

Instantly share code, notes, and snippets.

@ludovicc
Forked from roderik/bootstrap.sh
Last active December 14, 2015 17:59
Show Gist options
  • Save ludovicc/5126411 to your computer and use it in GitHub Desktop.
Save ludovicc/5126411 to your computer and use it in GitHub Desktop.
#!/bin/bash
sudo xcodebuild -license
if rvm --version 2>/dev/null; then
gem install soloist
else
sudo gem install soloist
fi
mkdir -p ~/cookbooks; cd ~/cookbooks
cat > soloistrc <<EOF
cookbook_paths:
- $PWD
recipes:
- pivotal_workstation::create_var_chef_cache
- pivotal_workstation::xquartz
EOF
if [[ -d pivotal_workstation ]]; then
cd pivotal_workstation && git pull && cd ..
else
git clone https://github.com/ludovicc/pivotal_workstation.git
fi
if [[ -d dmg ]]; then
cd dmg && git pull && cd ..
else
git clone https://github.com/opscode-cookbooks/dmg.git
fi
if [[ -d scala_workstation ]]; then
cd scala_workstation && git pull && cd ..
else
git clone https://github.com/ludovicc/scala_workstation.git
fi
soloist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment