Class: TestChanges::FindRunnerService
- Inherits:
-
Object
- Object
- TestChanges::FindRunnerService
- Defined in:
- lib/test_changes/find_runner_service.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(argv_wrapper: nil, config: nil) ⇒ FindRunnerService
constructor
A new instance of FindRunnerService.
Constructor Details
#initialize(argv_wrapper: nil, config: nil) ⇒ FindRunnerService
Returns a new instance of FindRunnerService.
3 4 5 6 |
# File 'lib/test_changes/find_runner_service.rb', line 3 def initialize(argv_wrapper: nil, config: nil) @argv_wrapper = argv_wrapper @config = config end |
Instance Method Details
#call ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/test_changes/find_runner_service.rb', line 8 def call return config.runners.first unless argv_wrapper.runner_name config.runners.find do |runner| runner.name == argv_wrapper.runner_name end end |