Skip to content

Instantly share code, notes, and snippets.

@mjuarez
Created October 28, 2014 21:16
Show Gist options
  • Save mjuarez/7f49bc791861be625919 to your computer and use it in GitHub Desktop.
Save mjuarez/7f49bc791861be625919 to your computer and use it in GitHub Desktop.
Chef pre-commit hooks
#!/bin/bash
if [[ -s "$HOME/.rvm/scripts/rvm" ]] ; then
source "$HOME/.rvm/scripts/rvm"
elif [[ -s "/usr/local/rvm/scripts/rvm" ]] ; then
source "/usr/local/rvm/scripts/rvm"
else
printf "ERROR: An RVM installation was not found.\n"
fi
rake style:ruby
rake style:chef
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment