2012-02-01 05:37:51 +01:00
|
|
|
#
|
|
|
|
# Defines Ruby on Rails aliases.
|
|
|
|
#
|
|
|
|
# Authors:
|
|
|
|
# Robby Russell <robby@planetargon.com>
|
|
|
|
# Jake Bell <jake.b.bell@gmail.com>
|
|
|
|
# Sorin Ionescu <sorin.ionescu@gmail.com>
|
|
|
|
#
|
|
|
|
|
2013-11-27 18:31:08 +01:00
|
|
|
# Load dependencies.
|
|
|
|
pmodload 'ruby'
|
|
|
|
|
2012-07-23 21:00:44 +02:00
|
|
|
# Return if requirements are not found.
|
2013-11-27 18:31:08 +01:00
|
|
|
if (( ! $+commands[bundle] )); then
|
2012-07-23 21:00:44 +02:00
|
|
|
return 1
|
|
|
|
fi
|
|
|
|
|
2012-08-04 20:48:32 +02:00
|
|
|
#
|
2013-11-27 18:31:08 +01:00
|
|
|
# Aliases
|
2012-08-04 20:48:32 +02:00
|
|
|
#
|
|
|
|
|
2013-11-27 18:31:08 +01:00
|
|
|
alias ror='bundle exec rails'
|
|
|
|
alias rorc='bundle exec rails console'
|
|
|
|
alias rordc='bundle exec rails dbconsole'
|
|
|
|
alias rordm='bundle exec rake db:migrate'
|
|
|
|
alias rordM='bundle exec rake db:migrate db:test:clone'
|
|
|
|
alias rordr='bundle exec rake db:rollback'
|
|
|
|
alias rorg='bundle exec rails generate'
|
|
|
|
alias rorl='tail -f "$(ruby-app-root)/log/development.log"'
|
|
|
|
alias rorlc='bundle exec rake log:clear'
|
|
|
|
alias rorp='bundle exec rails plugin'
|
|
|
|
alias rorr='bundle exec rails runner'
|
|
|
|
alias rors='bundle exec rails server'
|
|
|
|
alias rorsd='bundle exec rails server --debugger'
|
|
|
|
alias rorx='bundle exec rails destroy'
|
2011-08-31 05:16:15 +02:00
|
|
|
|