Skip to main content

UseInlineResourcesDefined

The department is: UseInlineResourcesDefined

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

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

use_inline_resources became the default in Chef Infra Client 13+ and no longer needs to be called in resources

Examples

incorrect

use_inline_resources
use_inline_resources if defined?(use_inline_resources)
use_inline_resources if respond_to?(:use_inline_resources)

Configurable attributes

Name Default value Configurable values
Version Added 5.4.0 String
Include
  • **/libraries/*.rb
  • **/providers/*.rb
  • **/resources/*.rb
Array

Was this page helpful?

×









Search Results