summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2018-12-18 12:08:09 +0100
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2018-12-19 10:26:45 +0100
commit777b7b335d3656c4623307959698247b74836fd9 (patch)
tree9b8ebcfe7c882cd6c18a9e5585c83cbe0f29c5e9
parent10e5961028cf63bdc6aaf10dee9ac7cdda81e25e (diff)
downloadbundler-777b7b335d3656c4623307959698247b74836fd9.tar.gz
Add docs for existing helpers
-rw-r--r--lib/bundler.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/bundler.rb b/lib/bundler.rb
index 6270559c21..12b5daea9a 100644
--- a/lib/bundler.rb
+++ b/lib/bundler.rb
@@ -314,10 +314,12 @@ EOF
env
end
+ # Run block with environment present before Bundler was activated
def with_original_env
with_env(original_env) { yield }
end
+ # Run block with all bundler-related variables removed
def with_clean_env
with_env(clean_env) { yield }
end