Method: Scruber::AppSearcher#find_scraper

Defined in:
lib/scruber/app_searcher.rb

#find_scraper(name, app_path) ⇒ Object



28
29
30
31
32
33
# File 'lib/scruber/app_searcher.rb', line 28

def find_scraper(name, app_path)
  [
    File.expand_path('../../scrapers/'+name+'.rb', app_path),
    File.expand_path('../../scrapers/'+name, app_path),
  ].find{|f| File.exists?(f) }
end