Class: CleoQualityReview::Runner::Dependencies

Inherits:
Struct
  • Object
show all
Defined in:
lib/cleo_quality_review/runner.rb

Overview

Runtime collaborators for a quality review run

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#base_resolverObject

Returns the value of attribute base_resolver

Returns:

  • (Object)

    the current value of base_resolver



41
42
43
# File 'lib/cleo_quality_review/runner.rb', line 41

def base_resolver
  @base_resolver
end

#check_registryObject

Returns the value of attribute check_registry

Returns:

  • (Object)

    the current value of check_registry



41
42
43
# File 'lib/cleo_quality_review/runner.rb', line 41

def check_registry
  @check_registry
end

#clockObject

Returns the value of attribute clock

Returns:

  • (Object)

    the current value of clock



41
42
43
# File 'lib/cleo_quality_review/runner.rb', line 41

def clock
  @clock
end

#command_runnerObject

Returns the value of attribute command_runner

Returns:

  • (Object)

    the current value of command_runner



41
42
43
# File 'lib/cleo_quality_review/runner.rb', line 41

def command_runner
  @command_runner
end

#executorObject

Returns the value of attribute executor

Returns:

  • (Object)

    the current value of executor



41
42
43
# File 'lib/cleo_quality_review/runner.rb', line 41

def executor
  @executor
end

Class Method Details

.for(options, overrides) ⇒ Object



42
43
44
45
46
47
48
49
50
51
52
# File 'lib/cleo_quality_review/runner.rb', line 42

def self.for(options, overrides)
  new(
    **{
      command_runner: CommandRunner.new,
      clock: Time,
      check_registry: Checks,
      base_resolver: nil,
      executor: ConcurrentExecutor.new(max_workers: options.jobs),
    }.merge(overrides),
  )
end