class LegacyFacter::Util::Parser::JsonParser
Public Instance Methods
parse_results()
click to toggle source
# File lib/facter/custom_facts/util/parser.rb, line 124 def parse_results if LegacyFacter.json? JSON.parse(content) else LegacyFacter.warnonce "Cannot parse JSON data file #{filename} without the json library." LegacyFacter.warnonce 'Suggested next step is `gem install json` to install the json library.' nil end end