Sha256: 7eef16eb032f8f4f5acc24b506617cc61b6b841d2b8e0ac6bd30aa5494b83c09

Contents?: true

Size: 400 Bytes

Versions: 8

Compression:

Stored size: 400 Bytes

Contents

module Relaton
  module Cli
    module DataFetcher
      def fetch(source, options)
        processor = Relaton::Registry.instance.find_processor_by_dataset source
        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

8 entries across 8 versions & 1 rubygems

Version Path
relaton-cli-1.11.0 lib/relaton/cli/data_fetcher.rb
relaton-cli-1.10.2 lib/relaton/cli/data_fetcher.rb
relaton-cli-1.10.1 lib/relaton/cli/data_fetcher.rb
relaton-cli-1.10.0 lib/relaton/cli/data_fetcher.rb
relaton-cli-1.9.5 lib/relaton/cli/data_fetcher.rb
relaton-cli-1.9.4 lib/relaton/cli/data_fetcher.rb
relaton-cli-1.9.3 lib/relaton/cli/data_fetcher.rb
relaton-cli-1.9.2 lib/relaton/cli/data_fetcher.rb