Open rismoney opened 3 weeks ago
@rismoney thank you for the enhancement, could you break things down a bit more on what you mean by the differences of execution between powershell and ruby-pwsh?
if you launch powershell via a fact, you can't control usage of pwsh or powershell (versions)
Also the gem usage prevents multiple instances of powershell, and you take advantage of runspaces automatically,
My understanding is facter is not using the https://github.com/puppetlabs/ruby-pwsh gem. It is not possible to control facters external fact execution using powershell vs pwsh. So what I am requesting, is the ability to possible control this, perhaps through facter.conf configuration. Also the benefits of using this gem, is that you drastically improve performance by avoiding instantiation of powershell processes.