Sha256: a271bc1559f9d88badcf1f797c09c2f2b6a57a033e17bd2d840430dbaf70750c

Contents?: true

Size: 510 Bytes

Versions: 5

Compression:

Stored size: 510 Bytes

Contents

module DataCatalog
  module ImporterFramework
    class Puller

      REQUIRED = %w(cache_folder puller)
      
      def initialize(options)
        REQUIRED.each do |r|
          raise Error, "option :#{r} is required" unless options[r.intern]
        end
        @options = options
      end
      
      def run
        Utility.report_timing "pull" do
          handler = Handler.new(@options)
          puller = @options[:puller].new(handler)
          puller.run
        end
      end

    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
datacatalog-importer-0.3.0 lib/puller.rb
datacatalog-importer-0.2.3 lib/puller.rb
datacatalog-importer-0.2.2 lib/puller.rb
datacatalog-importer-0.2.1 lib/puller.rb
datacatalog-importer-0.2.0 lib/puller.rb