Chef/Modernize/ShellOutHelper
The Cookstyle cops department: Chef/Modernize
| Enabled by default | Supports autocorrection | Target Chef Version |
|---|---|---|
| Enabled | Yes | 12.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
| Name | Default value | Configurable values |
|---|---|---|
| Version Added | 6.5.0 | String |
| Include | Array |