123456789_123456789_123456789_123456789_123456789_

Module: RuboCop::CLI::Command Private

Overview

Home of subcommands in the CLI.

Class Method Summary

  • .run(env, name) Internal use only Internal use only

    Find the command with a given name and run it in an environment.

  • .class_for(name) private Internal use only Internal use only

Class Method Details

.class_for(name) (private)

This method is for internal use only.
[ GitHub ]

  
# File 'lib/rubocop/cli/command.rb', line 16

def class_for(name)
  Base.by_command_name(name)
end

.run(env, name)

This method is for internal use only.

Find the command with a given name and run it in an environment.

[ GitHub ]

  
# File 'lib/rubocop/cli/command.rb', line 10

def run(env, name)
  class_for(name).new(env).run
end