def deployed_by
      username = nil

      scm = fetch(:scm, nil)

      if scm
        if scm.to_sym == :git
          username = `git config user.name`.chomp
          username = nil if $? != 0 || username.strip == ''
        end
      end

      username || `whoami`.chomp
    end
def deployed_by
      username = nil

      scm = fetch(:scm, nil)

      if scm
        if scm.to_sym == :git
          username = `git config user.name`.chomp
          username = nil if $? != 0 || username.strip == ''
        end
      end

      username || `whoami`.chomp
    end
get the name of the deploying user
 currently this only supports git.
 if reading the git user.name, fall back on `whoami`