diff options
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/commands/command.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/railties/lib/rails/commands/command.rb b/railties/lib/rails/commands/command.rb index ffd1a50c79..2e99046e9a 100644 --- a/railties/lib/rails/commands/command.rb +++ b/railties/lib/rails/commands/command.rb @@ -27,10 +27,6 @@ module Rails @@command_options[command_name] = options_to_parse end - def self.command_name_for(task_name) - task_name.gsub(':', '_').to_sym - end - def self.set_banner(command_name, banner) options_for(command_name) { |opts, _| opts.banner = banner } end @@ -61,6 +57,10 @@ module Rails @@commands << command end + def self.command_name_for(task_name) + task_name.gsub(':', '_').to_sym + end + def command_for(command_name) klass = @@commands.find do |command| command_instance_methods = command.public_instance_methods |