Sha256: 4efc6e8fb1025820372a39840fd16468574dbc3208a76722d22ef84705eec5e2
Contents?: true
Size: 382 Bytes
Versions: 3
Compression:
Stored size: 382 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gemsmith-5.6.0 | lib/gemsmith/kit.rb |
gemsmith-5.5.0 | lib/gemsmith/kit.rb |
gemsmith-5.4.0 | lib/gemsmith/kit.rb |