class Specinfra::HostInventory::Facter

Public Instance Methods

get() click to toggle source
# File lib/specinfra/host_inventory/facter.rb, line 6
def get
  begin
    ret = backend.run_command('facter --puppet --yaml')
  rescue StandardError
    nil
  end

  ret.exit_status == 0 ? YAML.load(ret.stdout) : nil
end