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


Chronological Thread 
  • From: < >
  • To:
  • Subject: [chef] Including other recipes ... why the alternate format/method?
  • Date: Wed, 12 Mar 2014 09:17:46 -0700 (PDT)

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! 



Archive powered by MHonArc 2.6.16.

§