builder/extra/tools/ruby-tpm/configurator.rb
def whoami
    if ENV['USER']
      ENV['USER']
    elsif ENV['LOGNAME']
      ENV['LOGNAME']
    else
      `whoami 2>/dev/null`.chomp
    end
  end
# Find out the current user ID.
Find out the current user ID.
Find out the current user ID .
def whoami
    if ENV['USER']
      ENV['USER']
    elsif ENV['LOGNAME']
      ENV['LOGNAME']
    else
      `whoami 2>/dev/null`.chomp
    end
  end
def whoami if ENV [ 'USER' ] ENV [ 'USER' ] elsif ENV [ 'LOGNAME' ] ENV [ 'LOGNAME' ] else ` whoami 2>/dev/null ` . chomp end end
Find out the current user ID.
Find out the current user ID .