Skip to main content

Chef/Ruby/LegacyPowershellOutMethods

Cookstyle cops page

The Cookstyle cops department: Chef/Ruby

Enabled by defaultSupports autocorrectionTarget Chef Version
Not EnabledNoAll 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

NameDefault valueConfigurable values
Version AddedString
Include
    Array

    Thank you for your feedback!

    ×









    Search Results