1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/railties/lib/rails/commands.rb

17 lines
280 B
Ruby
Raw Normal View History

2016-05-28 16:04:13 -04:00
require "rails/command"
aliases = {
"g" => "generate",
"d" => "destroy",
"c" => "console",
"s" => "server",
2011-05-07 23:12:34 -04:00
"db" => "dbconsole",
"r" => "runner",
"t" => "test"
}
command = ARGV.shift
command = aliases[command] || command
2016-05-28 16:04:13 -04:00
Rails::Command.invoke command, ARGV