Methods

Class/Module Index [+]

Quicksearch

Facter::Util::Parser::PowershellParser

Executes and parses the key value output of Powershell scripts

Public Instance Methods

results() click to toggle source

Returns a hash of facts from powershell output

# File lib/facter/util/parser.rb, line 135
def results
  shell_command = "powershell -NoProfile -NonInteractive -NoLogo -ExecutionPolicy Bypass -File \"#{filename}\""
  KeyValuePairOutputFormat.parse Facter::Util::Resolution.exec(shell_command)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.