ohmyzsh/plugins/rails/rails.plugin.zsh
Hakan Ensari ae4a63e999 Merge rails and rails3 plugins.
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.
2011-02-03 12:15:03 +00:00

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'