Sha256: 973b36a870c438f27d08613d75d34c286c04fd627b678c409786b179ff9a49a6

Contents?: true

Size: 447 Bytes

Versions: 15

Compression:

Stored size: 447 Bytes

Contents

module AnswersEngine
  module Scraper
    class Seeder

      def self.exec_seeder(filename, job_id=nil, save=false)
        extname = File.extname(filename)
        case extname
        when '.rb'
          executor = RubySeederExecutor.new(filename: filename, job_id: job_id)
          executor.exec_seeder(save)
        else
          puts "Unable to find a seeder executor for file type \"#{extname}\""
        end
      end

    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
answersengine-0.10.1 lib/answersengine/scraper/seeder.rb
answersengine-0.10.0 lib/answersengine/scraper/seeder.rb
answersengine-0.9.1 lib/answersengine/scraper/seeder.rb
answersengine-0.9.0 lib/answersengine/scraper/seeder.rb
answersengine-0.8.0 lib/answersengine/scraper/seeder.rb
answersengine-0.7.0 lib/answersengine/scraper/seeder.rb
answersengine-0.6.0 lib/answersengine/scraper/seeder.rb
answersengine-0.5.0 lib/answersengine/scraper/seeder.rb
answersengine-0.4.1 lib/answersengine/scraper/seeder.rb
answersengine-0.4.0 lib/answersengine/scraper/seeder.rb
answersengine-0.3.3 lib/answersengine/scraper/seeder.rb
answersengine-0.3.2 lib/answersengine/scraper/seeder.rb
answersengine-0.3.1 lib/answersengine/scraper/seeder.rb
answersengine-0.3.0 lib/answersengine/scraper/seeder.rb
answersengine-0.2.33 lib/answersengine/scraper/seeder.rb