lib/facter.rb
def to_user_output(cli_options, *args)
      init_cli_options(cli_options, args)
      logger.info("executed with command line: #{ARGV.drop(1).join(' ')}")
      log_blocked_facts
      resolved_facts = Facter::FactManager.instance.resolve_facts(args)
      SessionCache.invalidate_all_caches
      fact_formatter = Facter::FormatterFactory.build(Facter::Options.get)

      status = error_check(resolved_facts)

      [fact_formatter.format(resolved_facts), status || 0]
    end
# Gets a hash mapping fact names to their values
#
# @return [Array] the hash of fact names and values
#
# @api private
Gets a hash mapping fact names to their values
Gets a hash mapping fact names to their values
def to_user_output(cli_options, *args)
      init_cli_options(cli_options, args)
      logger.info("executed with command line: #{ARGV.drop(1).join(' ')}")
      log_blocked_facts
      resolved_facts = Facter::FactManager.instance.resolve_facts(args)
      SessionCache.invalidate_all_caches
      fact_formatter = Facter::FormatterFactory.build(Facter::Options.get)
      status = error_check(resolved_facts)
      [fact_formatter.format(resolved_facts), status || 0]
    end
def to_user_output ( cli_options , * args ) init_cli_options ( cli_options , args ) logger . info ( "executed with command line: #{ARGV.drop(1).join(' ')}" ) log_blocked_facts resolved_facts = Facter :: FactManager . instance . resolve_facts ( args ) SessionCache . invalidate_all_caches fact_formatter = Facter :: FormatterFactory . build ( Facter :: Options . get ) status = error_check ( resolved_facts ) [ fact_formatter . format ( resolved_facts ) , status || 0 ] end
Gets a hash mapping fact names to their values
Gets a hash mapping fact names to their values
the hash of fact names and values
the hash of fact names and values
Array
cli_options
args
api
None