summaryrefslogtreecommitdiff
path: root/man/bundle-exec.ronn
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2010-10-31 21:18:00 -0700
committerAndre Arko <andre@arko.net>2010-10-31 21:18:00 -0700
commitb50a902cdb65bc2e8f9f024ad376ca7a17f8fb31 (patch)
tree62a298298559550a7dc4875a733dfba09827e69e /man/bundle-exec.ronn
parentd732382a21f17f5a0b4a1bb0471d2b1d3f1d16c3 (diff)
downloadbundler-b50a902cdb65bc2e8f9f024ad376ca7a17f8fb31.tar.gz
Explain shelling out using with_clean_env in the bundle exec help
Diffstat (limited to 'man/bundle-exec.ronn')
-rw-r--r--man/bundle-exec.ronn13
1 files changed, 13 insertions, 0 deletions
diff --git a/man/bundle-exec.ronn b/man/bundle-exec.ronn
index 8797a55652..f5b61c8e65 100644
--- a/man/bundle-exec.ronn
+++ b/man/bundle-exec.ronn
@@ -56,6 +56,19 @@ It also modifies Rubygems:
making system executables work
* Add all gems in the bundle into Gem.loaded_specs
+### Shelling out
+
+When shelling out (using the `system` or backticks methods,
+for example), Bundler's environment changes will propogate to
+the subshell environment. If you desire to shell out without
+Bundler's environment changes, simply employ the `with_clean_env`
+method. It will restore all environment variables to what they
+were before Bundler was activated. For example:
+
+ Bundler.with_clean_env do
+ `brew install wget`
+ end
+
## RUBYGEMS PLUGINS
At present, the Rubygems plugin system requires all files