Class: Chef::Pwsh

Inherits:
PowerShell show all
Defined in:
lib/chef/pwsh.rb

Instance Attribute Summary

Attributes inherited from PowerShell

#errors, #result, #verbose

Instance Method Summary collapse

Methods inherited from PowerShell

#error!, #error?

Constructor Details

#initialize(script) ⇒ Object

Run a command under pwsh (powershell core) via FFI This implementation requires the managed dll, native wrapper and a published, self contained dotnet core directory tree to exist in the bindir directory.

Parameters:

  • script (String)

    script to run


28
29
30
31
# File 'lib/chef/pwsh.rb', line 28

def initialize(script)
  @dll = Pwsh.dll
  super
end