class RuboCop::Cop::Chef::Modernize::ConditionalUsingTest

Use ::File.exist?(‘/foo/bar’) instead of the slower ‘test -f /foo/bar’ which requires shelling out

@example

### incorrect
only_if 'test -f /bin/foo'

### correct
only_if { ::File.exist?('bin/foo') }