- From: Christopher Brown <
>
- To: Daniel DeLeo <
>
- Cc:
- Subject: [[chef-dev]] Re: [[chef-dev]] Re: [[chef-dev]] Re: [[chef-dev]] Use of require in chef
- Date: Fri, 13 Nov 2009 11:45:03 -0800
- Openpgp: id=8BFE7017
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
There is also the RUBYOPT environment variable. Not saying it's the
right approach, but I wanted to bring it up for completeness.
- -C
Daniel DeLeo wrote:
>
While we're attempting to figure this stuff out once and for all,
>
this is a good issue to bring up.
>
>
As rubygems will modify the executables on install, the only
>
downside to banishing `require "rubygems"` everywhere is that you'd
>
have to run, for example, `ruby -rubygems bin/chef-client` to run
>
the code out of a git clone. This can easily be tucked away from
>
view inside the rake tasks for running a development instance or
>
integration tests, so the impact would be minimal.
>
>
So, I'll +1 on this; I doubt anyone has a compelling reason that
>
they need to run a git clone of chef and can't` rake install` the
>
gems, but if that's you, feel free to comment.
>
>
Dan Deleo
>
>
On Fri, Nov 13, 2009 at 11:42 AM, Scott M. Likens
>
<
>
>
wrote:
>
>
> If you have my vote, I vote with Bryan McLellan here.
>
>
>
> I would rather avoid the rubygems dependency completely if
>
> possible, I know it raises some hackles and makes people worried.
>
> But I think most of us have seen how much fun rubygems can be,
>
> and some of us remember minigems fondly...
>
>
>
> On Nov 13, 2009, at 10:26 AM, Bryan McLellan wrote:
>
>
>
>> On Fri, Nov 13, 2009 at 10:12 AM, Daniel DeLeo
>
>> <
>
>
> wrote:
>
>>> * Don't require rubygems Finally, it should be possible to
>
>>> move any require "rubygems" into the executables and out of
>
>>> the lib/ dir. This would put chef in line with accepted
>
>>> practices and hopefully make packaging a bit easier.
>
>> I'm still of the opinion that the require for rubygems
>
>> shouldn't be in the chef/ohai source, and should either be in
>
>> the distributions gem wrapper binaries or in the distributions
>
>> packaging if required. For the chatter about why, see the
>
>> comments in the slew of sticks. Ya'll are, of course,
>
>> encouraged to convince me otherwise.
>
>>
>
>> http://tickets.opscode.com/browse/OHAI-140
>
>> http://tickets.opscode.com/browse/OHAI-119
>
>> http://tickets.opscode.com/browse/CHEF-669
>
>> http://tickets.opscode.com/browse/CHEF-531
>
>>
>
>> !DSPAM:4afda4f724111804284693!
>
>>
>
>>
>
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.12 (Darwin)
Comment: Using GnuPG with Mozilla -
http://enigmail.mozdev.org/
iQEcBAEBAgAGBQJK/bc/AAoJEKv60eeL/nAXTUoH/19qxU675PFI9T880V2f5zdk
DJeg9ztrhTzxoTrEQJwLtPmokWz1vg/I3HxnRSrTM3hjLBlkHmSL05VMzJ1FCRqV
PZj19cs6qO4+oTtLYXQz1FytG5Iul/nxz6RgBiQxmmtxwamPCD9WpZKyl+nhhSSl
I/NxHZVA29DQ4iZXPV8AiqvLm+tWDRlszq9KzholWNETvo40e+w7vVp38xLHZhAn
L4GzpeLlxKgGbTDXm7h4YA00xBl3C9yQSodAAdS1hhSVP9fVxBwqcdVFGl6MqyWm
lZdYrC2cpVJ759RMMWywnv56Rfu3mDNaD7+/Wdmiq1M0uux7TrDPRxTNZ/xs7zs=
=AP1s
-----END PGP SIGNATURE-----
Archive powered by MHonArc 2.6.16.