Skip to main content

Chef/Deprecations/ChefShellout

Cookstyle cops page

The Cookstyle cops department: Chef/Deprecations

Enabled by defaultSupports autocorrectionTarget Chef Version
EnabledYesAll Versions

Don’t use the deprecated Chef::ShellOut class which was removed in Chef Infra Client 13. Use the Mixlib::ShellOut class instead, which behaves identically or convert to the simpler shell_out helper.

Examples

incorrect

include Chef::ShellOut
require 'chef/shellout'
Chef::ShellOut.new('some_command')

correct

include Mixlib::ShellOut
require 'mixlib/shellout'
Mixlib::ShellOut.new('some_command')

Configurable attributes

NameDefault valueConfigurable values
Version Added6.17.0String
Include
    Array

    Thank you for your feedback!

    ×










    Search Results