debian-mirror-gitlab/debian/gems-compat/railties-5.1.7/lib/rails/commands.rb
2019-08-02 22:44:51 +05:30

16 lines
280 B
Ruby

require "rails/command"
aliases = {
"g" => "generate",
"d" => "destroy",
"c" => "console",
"s" => "server",
"db" => "dbconsole",
"r" => "runner",
"t" => "test"
}
command = ARGV.shift
command = aliases[command] || command
Rails::Command.invoke command, ARGV