[root@cgcldx0001 tools]# cat facter/bin/facter
#!/usr/bin/env /usr/local/peo/tools/ruby/bin/ruby
- frozen_string_literal: true
#
- This file was generated by Bundler.
#
- The application 'facter' is installed as part of a gem, and
- this file is here to facilitate running it.
#
require "pathname"
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", Pathname.new(_FILE_).realpath)
ENV['FACTERLIB'] ||= File.expand_path("../../lib/facter",Pathname.new(_FILE_).realpath)
$VERBOSE=nil
require "rubygems"
require "bundler/setup"
#Monkey patch canonicalize() to support camelCase fact names
require 'custom_facts/util/collection'
class LegacyFacter::Util::Collection
def canonicalize(name)
name.to_s.to_sym
end
end
load Gem.bin_path("facter", "facter")