Skip to content

Instantly share code, notes, and snippets.

@coop
Created June 26, 2012 00:48
Show Gist options
  • Save coop/2992377 to your computer and use it in GitHub Desktop.
Save coop/2992377 to your computer and use it in GitHub Desktop.
#!/bin/sh
if ! [ `which brew` > /dev/null ]; then
echo "Installing Homebrew" >&2
/usr/bin/ruby -e "$(/usr/bin/curl -fsSL https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)"
fi
PACKAGES=( redis memcached rabbitmq mysql imagemagick )
for PACKAGE in ${PACKAGES[@]}
do
if ! [ `brew list | grep $PACKAGE` > /dev/null ]; then
echo "Installing $PACKAGE" >&2
brew install $PACKAGE
fi
done
PACKAGE_CONFIGS=( 'database' 'redis' 'paperclip', 'amqp' )
for CONFIG in ${PACKAGE_CONFIGS[@]}
do
if ! [ -f "config/$CONFIG.yml" ]; then
echo "Copying $CONFIG.yml" >&2
cp "config/$CONFIG.yml.example" "config/$CONFIG.yml"
fi
done
echo "Finished bootstrapping Passport" >&2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment