diff options
author | Andre Arko <andre@arko.net> | 2010-10-31 21:18:00 -0700 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2010-10-31 21:18:00 -0700 |
commit | b50a902cdb65bc2e8f9f024ad376ca7a17f8fb31 (patch) | |
tree | 62a298298559550a7dc4875a733dfba09827e69e /man | |
parent | d732382a21f17f5a0b4a1bb0471d2b1d3f1d16c3 (diff) | |
download | bundler-b50a902cdb65bc2e8f9f024ad376ca7a17f8fb31.tar.gz |
Explain shelling out using with_clean_env in the bundle exec help
Diffstat (limited to 'man')
-rw-r--r-- | man/bundle-exec.ronn | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/man/bundle-exec.ronn b/man/bundle-exec.ronn index 8797a556..f5b61c8e 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 |