Method: MGit::Manifest#global_config
- Defined in:
- lib/m-git/manifest.rb
#global_config(key) ⇒ Object
获取全局配置
141 142 143 144 145 146 |
# File 'lib/m-git/manifest.rb', line 141 def global_config(key) key_str = Constants::CONFIG_KEY[key] value = config[key_str] terminate!("无法获取多仓库配置必需字段\"#{key}\"的值!") if value.nil? && Constants::REQUIRED_CONFIG_KEY.include?(key_str) value end |