Module: TestLauncher::Search

Defined in:
lib/test_launcher/search.rb,
lib/test_launcher/search/ag.rb,
lib/test_launcher/search/git.rb

Defined Under Namespace

Classes: Ag, Git

Class Method Summary collapse

Class Method Details

.searcher(shell) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/test_launcher/search.rb', line 6

def self.searcher(shell)
    if ENV.key?('TEST_LAUNCHER__AG')
      Search::Ag.new(shell)
    else
      Search::Git.new(shell)
    end
end