berkshelf / ridley

A reliable Chef API client with a clean syntax
Other
230 stars 84 forks source link

Use lazy defaults for Chef Config #276

Closed sethvargo closed 10 years ago

sethvargo commented 10 years ago

The default for some Chef Config objects (like file_cache_path) was Dir.mktmpdir. Since this file is evaluated at runtime, the temporary directory was being created, regardless of whether Ridley was invoked... Simply requiring the file would cause a tmpdir to be created.

poliva83 commented 10 years ago

Thank you @sethvargo