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
13
14
15
16
# File 'lib/test_launcher/search.rb', line 6

def self.searcher(shell)
  # `which ag`
  # implementation =
  #   if $?.success?
  #     Search::Ag
  #   else
  #     Search::Git
  #   end

  Search::Git.new(shell)
end