I’ve been using Chef::Config[:file_cache_path] to get the local Chef cache directory. What are some other valid other attributes, and where are they documented? I did search. For example I want to find the currently executing cookbook name.
Chris
I’ve been using Chef::Config[:file_cache_path] to get the local Chef cache directory. What are some other valid other attributes, and where are they documented? I did search. For example I want to find the currently executing cookbook name.
Chris
On Sep 14, 2015, at 1:03 PM, Fouts, Chris Chris.Fouts@Sensus.com wrote:
I’ve been using Chef::Config[:file_cache_path] to get the local Chef cache directory. What are some other valid other attributes, and where are they documented? I did search. For example I want to find the currently executing cookbook name.
Docs at https://docs.chef.io/config_rb_client.html. Current the current cookbook name is not related to the global config, but you can get it via cookbook_name
thanks to https://github.com/chef/chef/blob/master/lib/chef/recipe.rb#L44.
–Noah
Thanks for the quick response
Chris
-----Original Message-----
From: Noah Kantrowitz [mailto:noah@coderanger.net]
Sent: Monday, September 14, 2015 4:06 PM
To: chef@lists.opscode.com
Subject: [chef] Re: Valid attributes for Chef::Config?
On Sep 14, 2015, at 1:03 PM, Fouts, Chris Chris.Fouts@Sensus.com wrote:
I’ve been using Chef::Config[:file_cache_path] to get the local Chef cache directory. What are some other valid other attributes, and where are they documented? I did search. For example I want to find the currently executing cookbook name.
Docs at https://docs.chef.io/config_rb_client.html. Current the current cookbook name is not related to the global config, but you can get it via cookbook_name
thanks to https://github.com/chef/chef/blob/master/lib/chef/recipe.rb#L44.
–Noah