Skip to content

Instantly share code, notes, and snippets.

@tlehman
Created September 26, 2012 22:35
Show Gist options
  • Select an option

  • Save tlehman/3791065 to your computer and use it in GitHub Desktop.

Select an option

Save tlehman/3791065 to your computer and use it in GitHub Desktop.
Bundle or Isolate, Nobody Knows!
i() {
if [[ -a tmp/isolate ]] ; then
echo "\$ rake isolate:sh[\"$*\"]"
rake isolate:sh["$*"]
else
if [[ -a Gemfile ]] ; then
echo "\$ bundle exec[$*]"
bundle exec $*
else
echo "You must be at the root of a rails app that uses either Bundler or Isolate."
fi
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment