Class: Metanorma::Release::Platform::Local::ConfigFetcher
- Inherits:
-
Object
- Object
- Metanorma::Release::Platform::Local::ConfigFetcher
- Includes:
- ConfigFetcher
- Defined in:
- lib/metanorma/release/platform/local/config_fetcher.rb
Instance Method Summary collapse
Instance Method Details
#fetch(source) ⇒ Object
10 11 12 13 14 15 |
# File 'lib/metanorma/release/platform/local/config_fetcher.rb', line 10 def fetch(source) path = source.sub(/\Alocal:/, '') return nil unless File.exist?(path) ChannelConfig.from_file(path) end |