[chef] Re: Re: LWRP prevents code-reuse...


Chronological Thread 
  • From: Ringo De Smet < >
  • To:
  • Subject: [chef] Re: Re: LWRP prevents code-reuse...
  • Date: Wed, 30 Jun 2010 15:46:53 +0200
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=vKSmPBVmnzEGwjG5/kWFj9XbX9UDtvIY3xP9DCu1Qb2wnWF0/yRb9palMbwpwekFcb 6LMvB6clB4raPnHnji5UD2+j/vuO9RnqrH5N1Hd75yK7gsEIA+GAEm/tWHdOjImB94ec 20lgl/6zJqPZyR+O94MtSBJ71E75EU24NomXE=

AJ,

On 30 June 2010 00:56, AJ Christensen 
< >
 wrote:
> Chuck it in a library

Tnx for the tip.

One subsequent question though: the documentation states that
libraries are automatically "require"-d in your recipes, but what if
you want to "require" one library into another? I tried the following
variants:

require "qshell_resource"
require "libraries/qshell_resource"
require "<cookbook>/libraries/qshell_resource"

to refer to "<cookbook>/libraries/qshell_resource.rb".

None of them worked.

Ringo



Archive powered by MHonArc 2.6.16.

§