class RuboCop::CLI::Environment

Execution environment for a CLI command. @api private

Attributes

config_store[R]
options[R]
paths[R]

Public Class Methods

new(options, config_store, paths) click to toggle source
# File lib/rubocop/cli/environment.rb, line 10
def initialize(options, config_store, paths)
  @options = options
  @config_store = config_store
  @paths = paths
end

Public Instance Methods

run(name) click to toggle source

Run a command in this environment.

# File lib/rubocop/cli/environment.rb, line 17
def run(name)
  Command.run(self, name)
end