lib/poise_boiler/helpers/rake/badges.rb
# Run a git command and return the output.
#
# @param cmd [Array<String>] Command arguments to pass to git.
# @return [String, nil]
Run a git command and return the output.
Run a git command and return the output .
def git_shell_out(cmd)
          cmd = Mixlib::ShellOut.new(['git']+cmd, cwd: base)
          cmd.run_command
          if cmd.error?
            nil
          else
            cmd.stdout.strip
          end
        end
def git_shell_out ( cmd ) cmd = Mixlib :: ShellOut . new ( [ 'git' ] + cmd , cwd : base ) cmd . run_command if cmd . error? nil else cmd . stdout . strip end end
Run a git command and return the output.
Run a git command and return the output .
None
String, nil
cmd
Command arguments to pass to git.
Command arguments to pass to git .