Skip to main content

Chef/Modernize/ShellOutHelper

Cookstyle cops page

The Cookstyle cops department: Chef/Modernize

Enabled by defaultSupports autocorrectionTarget Chef Version
EnabledYes12.11+

Use the built-in shell_out helper available in Chef Infra Client 12.11+ instead of calling Mixlib::ShellOut.new('foo').run_command.

Examples

incorrect

Mixlib::ShellOut.new('foo').run_command

correct

shell_out('foo')

Configurable attributes

NameDefault valueConfigurable values
Version Added6.5.0String
Include
    Array

    Thank you for your feedback!

    ×









    Search Results