[chef] RE: Re: Valid attributes for Chef::Config?


Chronological Thread 
  • From: "Fouts, Chris" < >
  • To: " " < >
  • Subject: [chef] RE: Re: Valid attributes for Chef::Config?
  • Date: Mon, 14 Sep 2015 20:08:11 +0000
  • Accept-language: en-US

Thanks for the quick response

Chris

-----Original Message-----
From: Noah Kantrowitz 
[mailto:
 
Sent: Monday, September 14, 2015 4:06 PM
To: 

Subject: [chef] Re: Valid attributes for Chef::Config?


On Sep 14, 2015, at 1:03 PM, Fouts, Chris 
< >
 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




Archive powered by MHonArc 2.6.16.

§