Skip to content

Instantly share code, notes, and snippets.

@bmentges
Created September 20, 2010 01:14
Show Gist options
  • Save bmentges/587297 to your computer and use it in GitHub Desktop.
Save bmentges/587297 to your computer and use it in GitHub Desktop.
# .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