diff options
author | Patrick Carlisle <patrick@puppetlabs.com> | 2012-09-27 14:29:01 -0700 |
---|---|---|
committer | Patrick Carlisle <patrick@puppetlabs.com> | 2012-10-03 12:10:57 -0700 |
commit | 0ef65d10e33a1d451ba917eb158912e806bce056 (patch) | |
tree | 5b90f580d470a768291c47e155f8702254528c13 /bin | |
parent | 00866562c830df286a3d0723e4af6568300aadc6 (diff) | |
download | puppet-0ef65d10e33a1d451ba917eb158912e806bce056.tar.gz |
(#16757) Don't load rubygems if bundler is running
If bundler is handling gems we don't want to load rubygems ourselves, as it
can conflict and cause loading of system gems beyond what bundler has set up.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/puppet | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/bin/puppet b/bin/puppet index 57a32b8dd..aa568174a 100755 --- a/bin/puppet +++ b/bin/puppet @@ -1,9 +1,11 @@ #!/usr/bin/env ruby # Load rubygems so we can require gems -begin - require 'rubygems' -rescue LoadError +unless defined? Bundler::Setup + begin + require 'rubygems' + rescue LoadError + end end require 'puppet/util/command_line' |