Module: Relaton::Cli::DataFetcher
Instance Method Summary collapse
Instance Method Details
#fetch(source, options) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/relaton/cli/data_fetcher.rb', line 4 def fetch(source, ) processor = Relaton::Registry.instance.find_processor_by_dataset source unless processor Util.warn "no processor found for `#{source}`" return end opts = {} opts[:output] = [:output] if [:output] opts[:format] = [:format] if [:format] processor.fetch_data source, opts end |