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 default Supports autocorrection Target Chef Version
Enabled Yes All 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

Name Default value Configurable values
Version Added 6.17.0 String
Exclude
  • **/metadata.rb
  • **/attributes/*.rb
  • **/Berksfile
Array

Was this page helpful?

×









Search Results