Sha256: fa497092de3a16f56569881e8ff5dc710b16ef376ff2c310c5b1320b6612e08d

Contents?: true

Size: 450 Bytes

Versions: 26

Compression:

Stored size: 450 Bytes

Contents

# frozen_string_literal: true

module RuboCop
  class CLI
    # Execution environment for a CLI command.
    class Environment
      attr_reader :options, :config_store, :paths

      def initialize(options, config_store, paths)
        @options = options
        @config_store = config_store
        @paths = paths
      end

      # Run a command in this environment.
      def run(name)
        Command.run(self, name)
      end
    end
  end
end

Version data entries

26 entries across 25 versions & 5 rubygems

Version Path
grape-extra_validators-1.0.0 vendor/bundle/ruby/2.6.0/gems/rubocop-0.79.0/lib/rubocop/cli/environment.rb
grape-extra_validators-1.0.0 vendor/bundle/ruby/2.4.0/gems/rubocop-0.79.0/lib/rubocop/cli/environment.rb
rubocop-0.79.0 lib/rubocop/cli/environment.rb
rubocop-0.78.0 lib/rubocop/cli/environment.rb
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/rubocop-0.77.0/lib/rubocop/cli/environment.rb
rubocop-0.77.0 lib/rubocop/cli/environment.rb