Chef/Correctness/TmpPath
The Cookstyle cops department: Chef/Correctness
Enabled by default | Supports autocorrection | Target Chef Version |
---|---|---|
Enabled | No | All Versions |
Use file_cache_path rather than hard-coding system temp paths
Examples
incorrect
remote_file '/tmp/large-file.tar.gz' do
correct
remote_file "#{Chef::Config[:file_cache_path]}/large-file.tar.gz" do
Configurable attributes
Name | Default value | Configurable values |
---|---|---|
Version Added | 5.0.0 | String |
Include | Array |