Where is the right place to put a custom defined method for using in template


#1

I need to use a custom defined method in my template so it will be
executed at the converge time (not compile time )?
anyone knows where to put the method ?


ATTENTION:
The information in this electronic mail message is private and
confidential, and only intended for the addresses. Should you
receive this message by mistake, you are hereby notified that
any disclosure, reproduction, distribution or use of this
message is strictly prohibited. Please inform the sender by
reply transmission and delete the message without copying or
opening it.


#2

In a library, under libraries/foo.rb

On 24 September 2010 09:25, le.huy@ingdirect.es wrote:

I need to use a custom defined method in my template so it will be
executed at the converge time (not compile time )?
anyone knows where to put the method ?


ATTENTION:
The information in this electronic mail message is private and
confidential, and only intended for the addressee. Should you
receive this message by mistake, you are hereby notified that
any disclosure, reproduction, distribution or use of this
message is strictly prohibited. Please inform the sender by
reply transmission and delete the message without copying or
opening it.
Messages and attachments are scanned for all viruses known.
If this message contains password-protected attachments, the
files have NOT been scanned for viruses by the ING mail domain.
Always scan attachments before opening them.


#3

On Fri, Sep 24, 2010 at 11:12 AM, AJ Christensen aj@junglist.gen.nz wrote:

In a library, under libraries/foo.rb

And the wiki has some details on how to setup things up:

http://wiki.opscode.com/display/chef/Libraries