Sha256: 9ecf8da9781add1401b95b36709e4d5ca9477d0f856f7a6070ddb046408e3836

Contents?: true

Size: 192 Bytes

Versions: 7

Compression:

Stored size: 192 Bytes

Contents

Facter.add(:puppetversion) do
    setcode do
        begin
            require 'puppet'
            Puppet::PUPPETVERSION.to_s
        rescue LoadError
            nil
        end
    end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
facter-1.5.9 lib/facter/puppetversion.rb
facter-1.5.8 lib/facter/puppetversion.rb
facter-1.5.7 lib/facter/puppetversion.rb
facter-1.5.3 lib/facter/puppetversion.rb
facter-1.5.6 lib/facter/puppetversion.rb
facter-1.5.4 lib/facter/puppetversion.rb
facter-1.5.5 lib/facter/puppetversion.rb