method

warn_if_root

ruby latest stable - Class: Bundler::CLI::Install

Method not available on this version

This method is only available on newer versions. The first available version (v2_6_3) is shown here.

warn_if_root()
private

No documentation available.

# File lib/bundler/cli/install.rb, line 106
    def warn_if_root
      return if Bundler.settings[:silence_root_warning] || Bundler::WINDOWS || !Process.uid.zero?
      Bundler.ui.warn "Don't run Bundler as root. Bundler can ask for sudo "          "if it is needed, and installing your bundle as root will break this "          "application for all non-root users on this machine.", :wrap => true
    end