Method: DataDuck::Source.source_config
- Defined in:
- lib/dataduck/source.rb
.source_config(name) ⇒ Object
23 24 25 26 27 28 29 |
# File 'lib/dataduck/source.rb', line 23 def self.source_config(name) if DataDuck.config['sources'].nil? || DataDuck.config['sources'][name.to_s].nil? raise Exception.new("Could not find source #{ name } in source configs.") end DataDuck.config['sources'][name.to_s] end |