diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2015-12-06 13:24:42 +0100 |
---|---|---|
committer | Kasper Timm Hansen <kaspth@gmail.com> | 2015-12-06 13:24:42 +0100 |
commit | f8d2a14e251b9985db11475a0cf8b1350efbf8f1 (patch) | |
tree | b14dc725560e7af27ffeee227f1de84fc59b1f68 /railties/lib/rails.rb | |
parent | 65443ceb0d55e1445b28e31e772629424e6755c3 (diff) | |
download | rails-f8d2a14e251b9985db11475a0cf8b1350efbf8f1.tar.gz rails-f8d2a14e251b9985db11475a0cf8b1350efbf8f1.tar.bz2 rails-f8d2a14e251b9985db11475a0cf8b1350efbf8f1.zip |
Add class level `run` to Rails command.
The class level version is responsible for changing a task name to
command name, then finding a command and run it if there is one.
The instance level `run` then makes sure arguments have been parsed
into `@options` and runs the command by sending it.
`Rails::Commands::Command.run` returns true to make it work within
`Rails::CommandsTask`, but won't in the future when it handles
all option parsing.
Diffstat (limited to 'railties/lib/rails.rb')
0 files changed, 0 insertions, 0 deletions