Module: Metanorma::Release::ConfigResolver
- Included in:
- PackageCommand, PublishCommand
- Defined in:
- lib/metanorma/release/config_resolver.rb
Instance Method Summary collapse
Instance Method Details
#load_manifest(path) ⇒ Object
16 17 18 19 20 |
# File 'lib/metanorma/release/config_resolver.rb', line 16 def load_manifest(path) return nil unless path && File.exist?(path) ChannelManifest.from_file(path) end |
#resolve_channel_config(cli_source, manifest) ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/metanorma/release/config_resolver.rb', line 6 def resolve_channel_config(cli_source, manifest) return fetch_config(cli_source) if cli_source return fetch_config(manifest.config_source) if manifest&.config_source found = ConfigLocator.find return found if found ChannelConfig.empty end |