Skip to main content

AttributeHelper

All Cookstyle Cops


The department is: InSpec/Deprecations

The full name of the cop is: InSpec/Deprecations/AttributeHelper


Enabled by defaultSupports autocorrectionTarget Chef Version
EnabledYesAll Versions

InSpec attributes have been renamed to inputs. Use the input method not the deprecation attribute method to access these values.

Examples

incorrect

login_defs_umask = attribute('login_defs_umask', value: '077', description: 'Default umask to set in login.defs')

correct

login_defs_umask = input('login_defs_umask', value: '077', description: 'Default umask to set in login.defs')

Configurable attributes

NameDefault valueConfigurable values
Version Added7.14.0String
Include
  • **/controls/*.rb
Array

Was this page helpful?

×








Search Results