class Facter::Resolvers::Ruby
Private Class Methods
post_resolve(fact_name, _options)
click to toggle source
# File lib/facter/resolvers/ruby.rb, line 11 def post_resolve(fact_name, _options) @fact_list.fetch(fact_name) { retrieve_ruby_information(fact_name) } end
retrieve_ruby_information(fact_name)
click to toggle source
# File lib/facter/resolvers/ruby.rb, line 15 def retrieve_ruby_information(fact_name) @fact_list[:sitedir] = RbConfig::CONFIG['sitelibdir'] @fact_list[:platform] = RUBY_PLATFORM @fact_list[:version] = RUBY_VERSION @fact_list[fact_name] end