Skip to content

Instantly share code, notes, and snippets.

@roderik
Created January 2, 2013 12:02
Show Gist options
  • Save roderik/4434087 to your computer and use it in GitHub Desktop.
Save roderik/4434087 to your computer and use it in GitHub Desktop.
Bootstrap.sh extract
#!/bin/bash
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
- roderik_workstation::sublime_packages
EOF
if [[ -d pivotal_workstation ]]; then
cd pivotal_workstation && git pull && cd ..
else
git clone https://github.com/roderik/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 roderik_workstation ]]; then
cd roderik_workstation && git pull && cd ..
else
git clone https://github.com/roderik/roderik_workstation.git
fi
soloist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment