[chef] Re: cookbook lib requiring gem


Chronological Thread 
  • From: Jacobo García < >
  • To:
  • Cc: Andreas Kollegger < >
  • Subject: [chef] Re: cookbook lib requiring gem
  • Date: Wed, 23 Feb 2011 19:29:54 +0100
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=Cm2Lcc1CQe7PcgzlmqwG8ZYhRwzlOP6seIbmkKxG1pHh9AMj0tUjnsJ9zHt7TqCvnT rcNb20qOb0zwPufx9Om16u1eJ6BCPgin4Q4ZPJt5fn+xodJCshlssLsVhar2T3qlLd1l Bg/bndvvvNQIhg+DsgT2hKI+DjgAeNW0f6gKk=

Check this post from opscode blog where it explains how to require mysql library and then using it in the same recipe:

http://www.opscode.com/blog/2009/06/01/cool-chef-tricks-install-and-use-rubygems-in-a-chef-run/

Hope it helps.

Jacobo García López de Araujo
blog: http://robotplaysguitar.com
http://workingwithrails.com/person/13395-jacobo-garc-a



On Wed, Feb 23, 2011 at 7:22 PM, Andreas Kollegger < "> > wrote:
Hi,

What's the appropriate way to require a non-standard gem for a cookbook's library? I'm adding a zip.rb library to my cookbook, but it requires 'archive/zip' to do the actual work.

Should manually installing that gem be a pre-requisite,  or is there a clever way to bootstrap it with the gem_package resource in the recipe that uses it?

Or, is relying on extra gems frowned upon?

Thanks for any hints,
Andreas





Archive powered by MHonArc 2.6.16.

§