Sha256: 20c3839539f918afd935ea0aab4c05875345b2a80e271335f887390417147112

Contents?: true

Size: 512 Bytes

Versions: 4

Compression:

Stored size: 512 Bytes

Contents

module Relaton
  module Cli
    module DataFetcher
      def fetch(source, options)
        processor = Relaton::Registry.instance.find_processor_by_dataset source
        unless processor
          Util.warn "no processor found for `#{source}`"
          return
        end

        opts = {}
        opts[:output] = options[:output] if options[:output]
        opts[:format] = options[:format] if options[:format]
        processor.fetch_data source, opts
      end

      extend DataFetcher
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
relaton-cli-1.19.3 lib/relaton/cli/data_fetcher.rb
relaton-cli-1.19.2 lib/relaton/cli/data_fetcher.rb
relaton-cli-1.19.1 lib/relaton/cli/data_fetcher.rb
relaton-cli-1.19.0 lib/relaton/cli/data_fetcher.rb