mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
Add a `cuke` function that handles running feature within folders. Remove obsolete ssp and remote_console. Simply do `rake` to run all tests. There are numerous paths of how you may be connecting to a remote app depending on whether you use RVM, capistrano-style dir structures, your version of Rails, etc. IMO it's sounder to add a `rake remote` task to each project.
21 lines
440 B
Bash
21 lines
440 B
Bash
function _rails () {
|
|
if [ -e script/server ]; then
|
|
ruby script/$@
|
|
else
|
|
ruby script/rails $@
|
|
fi
|
|
}
|
|
|
|
function cuke () {
|
|
cucumber $@ -r features
|
|
}
|
|
|
|
alias rs='_rails server'
|
|
alias rd='_rails server --debugger'
|
|
alias rg='_rails generate'
|
|
alias rd='_rails destroy'
|
|
alias rp='_rails plugin'
|
|
alias rc='_rails console'
|
|
alias rdb='_rails dbconsole'
|
|
alias rdbm='rake db:migrate db:test:clone'
|
|
alias devlog='tail -f log/development.log'
|