Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

39 lines (36 sloc) 0.619 kB
function rs {
if [ -e Procfile ]; then
print 'Running foreman'
foreman start $@
elif [ -e script/rails ]; then
print 'Running Rails 3 server'
script/rails server $@
else
print 'Running Rails 2 server'
script/server $@
fi
}
function rc {
if [ -e script/rails ]; then
script/rails console $@
else
script/console $@
fi
}
function rg {
if [ -e script/rails ]; then
script/rails generate $@
else
script/generate $@
fi
}
function rake {
if [ -e Gemfile ]; then
bundle exec rake $@
else
command rake $@
fi
}
function :w {
print 'This is not vim'
}
Jump to Line
Something went wrong with that request. Please try again.