Current File : //opt/puppetlabs/puppet/lib/ruby/vendor_ruby/facter/framework/formatters/formatter_factory.rb
# frozen_string_literal: true

module Facter
  class FormatterFactory
    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
  end
end
Page not found – Hello World !