Class: LegacyFacter::Util::Parser::ScriptParser

Inherits:
Base
  • Object
show all
Defined in:
lib/facter/custom_facts/util/parser.rb

Instance Attribute Summary

Attributes inherited from Base

#filename

Instance Method Summary collapse

Methods inherited from Base

#content, #initialize, #log_stderr, #parse_executable_output, #results

Constructor Details

This class inherits a constructor from LegacyFacter::Util::Parser::Base

Instance Method Details

#parse_resultsObject



166
167
168
169
170
# File 'lib/facter/custom_facts/util/parser.rb', line 166

def parse_results
  stdout, stderr = Facter::Core::Execution.execute_command(quote(filename))
  log_stderr(stderr, filename, filename)
  parse_executable_output(stdout)
end