summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColby Swandale <hello@colby.fyi>2018-07-31 19:57:09 +1000
committerColby Swandale <hello@colby.fyi>2018-07-31 19:57:09 +1000
commitc763bee818570a4dc3fbe402b87086e729e37822 (patch)
treed7f7267d4e04fbbc078b812103a32abc2dfb364c
parent1a10427f9c76ffb29de25fe75d15c950682d01e4 (diff)
downloadbundler-colby/require-etc.tar.gz
require `etc` in Bundler#user_homecolby/require-etc
-rw-r--r--lib/bundler.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/bundler.rb b/lib/bundler.rb
index 68d5dc3368..6b62ac9b1c 100644
--- a/lib/bundler.rb
+++ b/lib/bundler.rb
@@ -170,6 +170,7 @@ module Bundler
end
if warning
+ Kernel.send(:require, "etc")
user_home = tmp_home_path(Etc.getlogin, warning)
Bundler.ui.warn "#{warning}\nBundler will use `#{user_home}' as your home directory temporarily.\n"
user_home