method
warn_if_root
v2_6_3 -
Show latest stable
- Class:
Bundler::CLI::Install
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