Sha256: 19e84ee059cdc4fd3cc0db134c774c46ee6604ca0b77b64995a02c36ce3e185c
Contents?: true
Size: 522 Bytes
Versions: 23
Compression:
Stored size: 522 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 return 0 }
Version data entries
23 entries across 23 versions & 2 rubygems