Class: TestLauncher::CLI::MultiRequestQuery

Inherits:
Struct
  • Object
show all
Defined in:
lib/test_launcher/cli.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#requestsObject

Returns the value of attribute requests

Returns:

  • (Object)

    the current value of requests



9
10
11
# File 'lib/test_launcher/cli.rb', line 9

def requests
  @requests
end

Instance Method Details

#commandObject



11
12
13
14
15
16
17
18
# File 'lib/test_launcher/cli.rb', line 11

def command
  command = nil
  command_finders.each do |command_finder|
    command = command_finder.generic_search
    break if command
  end
  command
end

#command_findersObject



20
21
22
# File 'lib/test_launcher/cli.rb', line 20

def command_finders
  requests.map {|request| Queries::CommandFinder.new(request)}
end