Sha256: 729449062574710035ee8f31ad752c9094ecf20764a7210d1ce311aab20118ba

Contents?: true

Size: 458 Bytes

Versions: 8

Compression:

Stored size: 458 Bytes

Contents

module AnswersEngine
  module Scraper
    class Finisher

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

    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
answersengine-0.10.1 lib/answersengine/scraper/finisher.rb
answersengine-0.10.0 lib/answersengine/scraper/finisher.rb
answersengine-0.9.1 lib/answersengine/scraper/finisher.rb
answersengine-0.9.0 lib/answersengine/scraper/finisher.rb
answersengine-0.8.0 lib/answersengine/scraper/finisher.rb
answersengine-0.7.0 lib/answersengine/scraper/finisher.rb
answersengine-0.6.0 lib/answersengine/scraper/finisher.rb
answersengine-0.5.0 lib/answersengine/scraper/finisher.rb