class Facter::FormatterFactory

Public Class Methods

build(options) click to toggle source
# File lib/facter/framework/formatters/formatter_factory.rb, line 4
def self.build(options)
  return JsonFactFormatter.new if options[:json]
  return YamlFactFormatter.new if options[:yaml]
  return HoconFactFormatter.new if options[:hocon]

  LegacyFactFormatter.new
end