?
Current Path : /usr/share/ruby/vendor_ruby/facter/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : //usr/share/ruby/vendor_ruby/facter/puppetversion.rb |
# Fact: puppetversion # # Purpose: Return the version of puppet installed. # # Resolution: # Requires puppet via Ruby and returns the value of its version constant. # # Caveats: # Facter.add(:puppetversion) do setcode do begin require 'puppet/version' Puppet.version.to_s rescue LoadError nil end end end