Sha256: 39607e318c09f254d66a9eaedc2469cd78da909affcdd7d8fc9e39457f39d14e
Contents?: true
Size: 413 Bytes
Versions: 1
Compression:
Stored size: 413 Bytes
Contents
module CliTemplate class Git class << self def user_name sh "git config --get user.name", mute: true end def user_email sh "git config --get user.email", mute: true end def sh(command, mute: false) puts "=> #{command}" unless mute stdout = `#{command}` out = stdout.strip return out if !out&.empty? end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cli-template-4.0.2 | lib/cli_template/git.rb |