- From: Cyril Scetbon <
>
- To: "
" <
>
- Cc: "
" <
>, "
" <
>
- Subject: [chef] Re: Re: Re: Re: Cannot find a resource for hostsfile_entry on ubuntu
- Date: Sun, 19 Jan 2014 00:53:53 +0100
Yes it helps Thank you guys !
Cyril Scetbon Le 17 janv. 2014 à 21:56, Daniel DeLeo <
">
> a écrit :
On Friday, January 17, 2014 at 12:06 PM, Cyril Scetbon wrote:
On 17 Jan 2014, at 20:21, Daniel DeLeo <
">
> wrote: ok you're right this file is included and contains functions. I've finally made it work with a new fresh repository. where can I find more information about this naming conventions and how it works ? is it related to ruby (I'm not yet an experimented ruby coder) ? Generally this stuff should be on the docs site, e.g., http://docs.opscode.com/lwrp_custom_resource.html In this case that page doesn’t describe the naming conventions for LWRP resources, so I’ll get in touch with our technical writer about this.
The naming conventions in Chef are generally defined by Chef’s code and not general ruby things. For example, a Chef resource can have any name that is a valid ruby method name and correctly converts to the proper ruby class name (this is based on how Chef converts snake_case_method_names into CamelCaseClassNames). That said, the LWRP DSL removes all of the boilerplate of class definitions so there’s no place for a user to specify what name they want the resource to have, which means that Chef picks the name based on its own conventions.
HTH,
|
Archive powered by MHonArc 2.6.16.