Katello/katello — pull request #950 by lzap (2012-10-30 11:33:18+00:00)
Title: wrapping headpin only gems to the if statement

My patch from yesterday broke headpin. This fixes it, I am not adding .bundle/config file anymore because I have found we no longer need it in the RPM installation since test and development groups are cut in the build phase.

According to Petr's findings, bundler must have all the gems to resolve dependencies, even those which are defined in excluded groups. Therefore the only way to get over it (since the foreman merge we now have a gem that is not distributed for headpin) is:

a) Exclude it with our environment variable we have set (current solution, a bit "hacky")

b) distribute two Gemfiles in two conflicting RPM packages (we need to create them in the build phase - also a big hacky)

c) get rid of bundler on the production - this is what aeolus team is currently doing and I think it is the best approach for us (https://github.com/aeolus-incubator/bundler_ext) - I guess the good plan is to ask aeolus team to make a package for us in Fedora and EPEL and start using it. or we can copy*paste the code, its just one file (cca 30 lines). after this patch, no more issues with bundler as it will be turned off and katello will be using only system rubygems.