Skip to main content

Chef/Deprecations/ChocolateyPackageUninstallAction

Cookstyle cops page

The Cookstyle cops department: Chef/Deprecations

Enabled by defaultSupports autocorrectionTarget Chef Version
EnabledYesAll Versions

Use the :remove action in the chocolatey_package resource instead of :uninstall which was removed in Chef Infra Client 14+.

Examples

incorrect

chocolatey_package 'nginx' do
  action :uninstall
end

correct

chocolatey_package 'nginx' do
  action :remove
end

Configurable attributes

NameDefault valueConfigurable values
Version Added5.5.0String
Include
    Array

    Thank you for your feedback!

    ×










    Search Results