Chef/Ruby/LegacyPowershellOutMethods
The Cookstyle cops department: Chef/Ruby
Enabled by default | Supports autocorrection | Target Chef Version |
---|---|---|
Not Enabled | No | All Versions |
Use powershell_exec!/powershell_exec instead of powershell_out!/powershell_out. The new methods don’t spawn 2 shells per shellout and instead use .NET bindings to call PS directly.
Examples
Configurable attributes
Name | Default value | Configurable values |
---|---|---|
Version Added | String | |
Include | Array |