- From: Mike <
>
- To: Bryan McLellan <
>
- Cc:
- Subject: [chef-dev] Re: Determining if running omnibus or system ruby
- Date: Wed, 15 Aug 2012 12:10:00 -0400
Thanks for pointing that out.
The need I have is in a handler's run, I need to include some
prerequisites like ruby-devel, before the handler is installed.
Figuring out whether to use the system's package manager to install
these, or if they are already there in the omnibus install would make
the environment cleaner, as less extras would be installed.
Does that make sense?
On Wed, Aug 15, 2012 at 11:43 AM, Bryan McLellan
<
>
wrote:
>
On Wed, Aug 15, 2012 at 11:35 AM, Mike
>
<
>
>
wrote:
>
> Has anyone come up with a 'standard' for handling determining whether
>
> chef is installed via omnibus (with embedded ruby) or another method
>
> with a different ruby?
>
>
The current definitive method is
>
Chef::Provider::Package::Rubygems::AlternateGemEnvironment.is_omnibus?
>
>
We've talked about wanting to upfactor that to a more common place,
>
maybe a mixin and then you could include that in recipes too.
>
>
What are you trying to do by the way?
>
>
Bryan
Archive powered by MHonArc 2.6.16.