Created
September 26, 2012 22:35
-
-
Save tlehman/3791065 to your computer and use it in GitHub Desktop.
Bundle or Isolate, Nobody Knows!
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
| 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