Sha256: 2cceb263c4684d75c70c57d9abc013ab76bf2ec9383ab8ee093b2ef8039d0bf1

Contents?: true

Size: 468 Bytes

Versions: 143

Compression:

Stored size: 468 Bytes

Contents

require 'facter'
require 'puppet/util/feature'

Puppet.features.add :cfacter do
  Puppet.deprecation_warning("The cfacter setting is deprecated. You can use Facter 3 and higher without this setting.")
  begin
    require 'cfacter'

    # The first release of cfacter didn't have the necessary interface to work with Puppet
    # Therefore, if the version is 0.1.0, treat the feature as not present
    CFacter.version != '0.1.0'
  rescue LoadError
    false
  end
end

Version data entries

143 entries across 143 versions & 2 rubygems

Version Path
puppet-retrospec-1.8.0 vendor/pup410/lib/puppet/feature/cfacter.rb
puppet-retrospec-1.7.0 vendor/pup410/lib/puppet/feature/cfacter.rb
puppet-4.10.12 lib/puppet/feature/cfacter.rb
puppet-4.10.12-x86-mingw32 lib/puppet/feature/cfacter.rb
puppet-4.10.12-x64-mingw32 lib/puppet/feature/cfacter.rb
puppet-4.10.12-universal-darwin lib/puppet/feature/cfacter.rb
puppet-4.10.11 lib/puppet/feature/cfacter.rb
puppet-4.10.11-x86-mingw32 lib/puppet/feature/cfacter.rb
puppet-4.10.11-x64-mingw32 lib/puppet/feature/cfacter.rb
puppet-4.10.11-universal-darwin lib/puppet/feature/cfacter.rb
puppet-4.10.10 lib/puppet/feature/cfacter.rb
puppet-4.10.10-x86-mingw32 lib/puppet/feature/cfacter.rb
puppet-4.10.10-x64-mingw32 lib/puppet/feature/cfacter.rb
puppet-4.10.10-universal-darwin lib/puppet/feature/cfacter.rb
puppet-retrospec-1.6.1 vendor/pup410/lib/puppet/feature/cfacter.rb
puppet-retrospec-1.6.0 vendor/pup410/lib/puppet/feature/cfacter.rb
puppet-4.10.9 lib/puppet/feature/cfacter.rb
puppet-4.10.9-x86-mingw32 lib/puppet/feature/cfacter.rb
puppet-4.10.9-x64-mingw32 lib/puppet/feature/cfacter.rb
puppet-4.10.9-universal-darwin lib/puppet/feature/cfacter.rb