Skip to main content

ChefShellout

All Cookstyle Cops


The department is: Chef/Deprecations

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


Enabled by defaultSupports autocorrectionTarget Chef Version
EnabledYesAll Versions

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

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
Exclude
  • **/metadata.rb
  • **/attributes/*.rb
  • **/Berksfile
Array

Was this page helpful?









Search Results