Created
September 20, 2010 01:14
-
-
Save bmentges/587297 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .rvmrc_example => .rvmrc | |
# 1.9.1@projeto significa <ruby_version>@<projeto> | |
rvm use --create --install 1.9.1@projeto >/dev/null 2>&1 | |
if [[ -s "./dependencias.gems" ]]; then | |
if ! rvm gemset import dependencias.gems >/dev/null 2>&1; then | |
echo "ERROR: Nao foi possivel instalar as gems" >&2 | |
fi | |
fi | |
# Checa se Bundle estah disponivel, sem config customizada, e instala. | |
if command -v bundle >/dev/null && ! grep -q BUNDLE_FROZEN .bundle/config 2>/dev/null ; then | |
bundle install >/dev/null 2>&1 | |
fi | |
# EOF | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment