Skip to main content

Chef/Correctness/TmpPath

Cookstyle cops page

The Cookstyle cops department: Chef/Correctness

Enabled by defaultSupports autocorrectionTarget Chef Version
EnabledNoAll 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

NameDefault valueConfigurable values
Version Added5.0.0String
Include
    Array

    Thank you for your feedback!

    ×









    Search Results