Sha256: 5b94eb546f93236633c6f6607b9927ad396edaf5657376e16b286139b06a1b62

Contents?: true

Size: 528 Bytes

Versions: 13

Compression:

Stored size: 528 Bytes

Contents

module Relaton
  module Cli
    module DataFetcher
      def fetch(source, options)
        processor = Relaton::Registry.instance.find_processor_by_dataset source
        unless processor
          warn "[relaton-cli] WARNING: 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

13 entries across 13 versions & 1 rubygems

Version Path
relaton-cli-1.16.0 lib/relaton/cli/data_fetcher.rb
relaton-cli-1.15.6 lib/relaton/cli/data_fetcher.rb
relaton-cli-1.15.5 lib/relaton/cli/data_fetcher.rb
relaton-cli-1.15.4 lib/relaton/cli/data_fetcher.rb
relaton-cli-1.15.3 lib/relaton/cli/data_fetcher.rb
relaton-cli-1.15.2 lib/relaton/cli/data_fetcher.rb
relaton-cli-1.15.1 lib/relaton/cli/data_fetcher.rb
relaton-cli-1.15.0 lib/relaton/cli/data_fetcher.rb
relaton-cli-1.14.1 lib/relaton/cli/data_fetcher.rb
relaton-cli-1.14.0 lib/relaton/cli/data_fetcher.rb
relaton-cli-1.13.0 lib/relaton/cli/data_fetcher.rb
relaton-cli-1.12.1 lib/relaton/cli/data_fetcher.rb
relaton-cli-1.12.0 lib/relaton/cli/data_fetcher.rb