| ... | ... |
@@ -1,13 +1,5 @@ |
| 1 | 1 |
# Rails 3 aliases, backwards-compatible with Rails 2. |
| 2 | 2 |
|
| 3 |
-function _bundle_command {
|
|
| 4 |
- if command -v bundle && [ -e "Gemfile" ]; then |
|
| 5 |
- bundle exec $@ |
|
| 6 |
- else |
|
| 7 |
- $@ |
|
| 8 |
- fi |
|
| 9 |
-} |
|
| 10 |
- |
|
| 11 | 3 |
function _rails_command () {
|
| 12 | 4 |
if [ -e "script/server" ]; then |
| 13 | 5 |
ruby script/$@ |
| ... | ... |
@@ -25,6 +17,3 @@ alias rp='_rails_command plugin' |
| 25 | 25 |
alias rs='_rails_command server' |
| 26 | 26 |
alias rsd='_rails_command server --debugger' |
| 27 | 27 |
alias devlog='tail -f log/development.log' |
| 28 |
- |
|
| 29 |
-alias rspec='_bundle_command rspec' |
|
| 30 |
-alias cuke='_bundle_command cucumber' |