Sha256: 7251a0ca5e600977c3b04433cb2d258c85942dadec02c1f3651c1f0b07418e52

Contents?: true

Size: 347 Bytes

Versions: 71

Compression:

Stored size: 347 Bytes

Contents

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

Puppet.features.add :cfacter do
  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

71 entries across 71 versions & 2 rubygems

Version Path
puppet-retrospec-0.12.2 vendor/gems/puppet-3.7.3/lib/puppet/feature/cfacter.rb
puppet-3.8.7 lib/puppet/feature/cfacter.rb
puppet-3.8.7-x86-mingw32 lib/puppet/feature/cfacter.rb
puppet-3.8.7-x64-mingw32 lib/puppet/feature/cfacter.rb
puppet-3.8.6 lib/puppet/feature/cfacter.rb
puppet-3.8.6-x86-mingw32 lib/puppet/feature/cfacter.rb
puppet-retrospec-0.12.1 vendor/gems/puppet-3.7.3/lib/puppet/feature/cfacter.rb
puppet-3.8.6-x64-mingw32 lib/puppet/feature/cfacter.rb
puppet-retrospec-0.12.0 vendor/gems/puppet-3.7.3/lib/puppet/feature/cfacter.rb
puppet-3.8.5 lib/puppet/feature/cfacter.rb
puppet-3.8.5-x86-mingw32 lib/puppet/feature/cfacter.rb
puppet-3.8.5-x64-mingw32 lib/puppet/feature/cfacter.rb
puppet-3.8.4 lib/puppet/feature/cfacter.rb
puppet-3.8.4-x86-mingw32 lib/puppet/feature/cfacter.rb
puppet-3.8.4-x64-mingw32 lib/puppet/feature/cfacter.rb
puppet-4.2.3 lib/puppet/feature/cfacter.rb
puppet-4.2.3-x86-mingw32 lib/puppet/feature/cfacter.rb
puppet-4.2.3-x64-mingw32 lib/puppet/feature/cfacter.rb
puppet-retrospec-0.11.0 vendor/gems/puppet-3.7.3/lib/puppet/feature/cfacter.rb
puppet-retrospec-0.10.0 vendor/gems/puppet-3.7.3/lib/puppet/feature/cfacter.rb