Skip to main content

ExecuteRelativeCreatesWithoutCwd

The department is: ExecuteRelativeCreatesWithoutCwd

The full name of the cop is: Chef/Deprecations/ExecuteRelativeCreatesWithoutCwd

Enabled by default Supports autocorrection Target Chef Version
Enabled No All Versions

In Chef Infra Client 13 and later you must either specific an absolute path when using the execute resource’s creates property or also use the cwd property.

Examples

incorrect

execute 'some_cmd' do
  creates 'something'
end

correct

execute 'some_cmd' do
  creates '/tmp/something'
end

execute 'some_cmd' do
  creates 'something'
  cwd '/tmp/'
end

Configurable attributes

Name Default value Configurable values
Version Added 6.17.0 String
Include
Array

Was this page helpful?

×









Search Results