- From: Mike <
>
- To: "
" <
>
- Subject: [chef] Re: Re: How to obtain cookbook dependencies from metadata.rb?
- Date: Wed, 9 Jan 2013 17:31:58 -0500
>
Has someone done something like this already?
Um, berkshelf. :)
You can probably figure out some of the work from there. But I have no
idea if the Chef cookbook metadata parser will allow for anything
other than a version string following a cookbook name.
Ref:
https://github.com/opscode/chef/blob/10-stable/chef/lib/chef/cookbook/metadata.rb#L252-L267
-M
On Wed, Jan 9, 2013 at 5:26 PM, Torben Knerr
<
>
wrote:
>
Background:
>
>
First, I want to emulate Berkshelfs 'metadata' keyword inside a librarian
>
Cheffile.
>
>
Then I want to override the location for some of the metadata-defined
>
cookbook dependencies in the Cheffile (e.g. use github branch rather than
>
community site)
>
>
Has someone done something like this already?
>
>
Am 09.01.2013 22:44 schrieb "Torben Knerr"
>
<
>:
>
>
> Ohai Chefs,
>
>
>
> what's the easiest way to obtain the cookbook dependencies defined in
>
> metadata.rb (only direct dependencies are required)?
>
>
>
> I'm not too firm with the chef internals yet, thus my first idea was to
>
> evaluate metadata.rb and recording the `depends` calls via `method_missing`
>
> - but this doesn't feels quite right...
>
>
>
> Thanks!
>
> Torben
Archive powered by MHonArc 2.6.16.