[chef] Re: Including other recipes ... why the alternate format/method?


Chronological Thread 
  • From: "Julian C. Dunn" < >
  • To: " " < >
  • Subject: [chef] Re: Including other recipes ... why the alternate format/method?
  • Date: Thu, 13 Mar 2014 12:12:15 -0400

I explained this in my "demystifying common Chef idioms" blog post;
let me know if that answers it.

http://www.getchef.com/blog/2013/09/04/demystifying-common-idioms-in-chef-recipes/

- Julian

On Wed, Mar 12, 2014 at 12:17 PM,  
< >
 wrote:
> Greetings,
>
> I am looking at a recipe for installing tomcat and happened across this line
> (with associated comment):
>
>    # required for the secure_password method from the openssl cookbook
>    ::Chef::Recipe.send(:include, Opscode::OpenSSL::Password)
>
> I was wondering why the author would choose to use this alternate way of
> including a recipe. Why would they not just do something like: 
> include_recipe
> 'X::Password'.
>
> Is this not doing exactly that, simply including another recipe? If so, then
> why choose the more difficult to read/maintain/etc way of doing it?
>
> Thanks in advance for the insight!



-- 
[ Julian C. Dunn 
< >
          * Sorry, I'm    ]
[ WWW: http://www.aquezada.com/staff/julian    * only Web 1.0  ;]
gopher://sdf.org/1/users/keymaker/           * compliant!    ;]
[ PGP: 91B3 7A9D 683C 7C16 715F 442C 6065 D533 FDC2 05B9       ]



Archive powered by MHonArc 2.6.16.

§