Method: RHC::GitHelpers#git_config_get
- Defined in:
- lib/rhc/git_helpers.rb
#git_config_get(key) ⇒ Object
:nocov: These all call external binaries so test them in cucumber
48 49 50 51 52 53 54 55 |
# File 'lib/rhc/git_helpers.rb', line 48 def git_config_get(key) config_get_cmd = "git config --get #{key}" value = %x[#{config_get_cmd}].strip debug "Git config '#{config_get_cmd}' returned '#{value}'" value = nil if $?.exitstatus != 0 or value.empty? value end |