[chef] Hash magic in recipe


Chronological Thread 
  • From: howard chen < >
  • To:
  • Subject: [chef] Hash magic in recipe
  • Date: Thu, 28 Mar 2013 19:02:01 +0800

Hi

Not a direct chef related question, but some how I found it is interesting.

Q. In the recipe, I would able to use the node as the following ways


 node[:myapp][:app_name]
 node['myapp'][:app_name]
 node[:myapp]['app_name']

Both are valid..May I ask what kind of magic is being used to achieve this?

Thanks.



Archive powered by MHonArc 2.6.16.

§