Skip to main content

TmpPath

The department is: TmpPath

The full name of the cop is: Chef/Correctness/TmpPath

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