Sha256: eb772967685846999dc33cfcfd37917b43c93c8ea858f2cf83f3f9b4922044d1
Contents?: true
Size: 496 Bytes
Versions: 2
Compression:
Stored size: 496 Bytes
Contents
#!/usr/bin/env bash # # r - Rails shortcut command. # r() { local action args action="$1" ; shift args="$@" case "$action" in c) action=console ;; db) action=dbconsole ;; g) action=generate ;; h|help) action="-h" ;; esac if [[ -s config.ru ]] ; then ruby ./script/rails $args else if [[ -s ./script/$action ]] ; then ruby ./script/$action $args else printf "ERROR: Missing script ./script/$action !!!" fi fi }
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rvm-1.0.11 | contrib/r |
rvm-1.0.10 | contrib/r |