Sha256: fb2f612b9ed1bf556c9f98a6314c64163e91515816d0ad0f8511965d12aede05
Contents?: true
Size: 381 Bytes
Versions: 19
Compression:
Stored size: 381 Bytes
Contents
module Gemsmith # Provides supplementary utility methods. class Kit # Answers the git config (i.e. ~/.gitconfig) value for a given key, otherwise nil. # ==== Parameters # # * +key+ - Required. The git config key to search for. def self.git_config_value key value = `git config #{key}`.chomp value.nil? || value.empty? ? nil : value end end end
Version data entries
19 entries across 19 versions & 1 rubygems