# File lib/bundler.rb, line 303
    def sudo(str)
      prompt = "\n\n" + "Your user account isn't allowed to install to the system Rubygems.\nYou can cancel this installation and run:\n\nbundle install --path vendor/bundle\n\nto install the gems into ./vendor/bundle/, or you can enter your password\nand install the bundled gems to Rubygems using sudo.\n\nPassword:\n".gsub(/^ {6}/, '').strip + " "

      `sudo -p "#{prompt}" #{str}`
    end