Sha256: 4fc52c53bc177e74474bcb4a0e8a4dbb990b7cea4dcaa22e758d1d780498dc14

Contents?: true

Size: 718 Bytes

Versions: 246

Compression:

Stored size: 718 Bytes

Contents

# Configures validation suitable for the bindings model
# @api public
#
class Puppet::Pops::Binder::BindingsValidatorFactory < Puppet::Pops::Validation::Factory
  Issues = Puppet::Pops::Binder::BinderIssues

  # Produces the checker to use
  def checker diagnostic_producer
    Puppet::Pops::Binder::BindingsChecker.new(diagnostic_producer)
  end

  # Produces the label provider to use
  def label_provider
    Puppet::Pops::Binder::BindingsLabelProvider.new()
  end

  # Produces the severity producer to use
  def severity_producer
    p = super

    # Configure each issue that should **not** be an error
    #
    p[Issues::MISSING_BINDINGS] = :warning
    p[Issues::MISSING_LAYERS]   = :warning

    p
  end
end

Version data entries

246 entries across 246 versions & 2 rubygems

Version Path
puppet-4.9.3-universal-darwin lib/puppet/pops/binder/bindings_validator_factory.rb
puppet-4.9.2 lib/puppet/pops/binder/bindings_validator_factory.rb
puppet-4.9.2-x86-mingw32 lib/puppet/pops/binder/bindings_validator_factory.rb
puppet-4.9.2-x64-mingw32 lib/puppet/pops/binder/bindings_validator_factory.rb
puppet-4.9.2-universal-darwin lib/puppet/pops/binder/bindings_validator_factory.rb
puppet-4.9.1 lib/puppet/pops/binder/bindings_validator_factory.rb
puppet-4.9.1-x86-mingw32 lib/puppet/pops/binder/bindings_validator_factory.rb
puppet-4.9.1-x64-mingw32 lib/puppet/pops/binder/bindings_validator_factory.rb
puppet-4.9.1-universal-darwin lib/puppet/pops/binder/bindings_validator_factory.rb
puppet-retrospec-1.3.0 vendor/gems/puppet-4.5.2/lib/puppet/pops/binder/bindings_validator_factory.rb
puppet-4.9.0 lib/puppet/pops/binder/bindings_validator_factory.rb
puppet-4.9.0-x86-mingw32 lib/puppet/pops/binder/bindings_validator_factory.rb
puppet-4.9.0-x64-mingw32 lib/puppet/pops/binder/bindings_validator_factory.rb
puppet-4.9.0-universal-darwin lib/puppet/pops/binder/bindings_validator_factory.rb
puppet-4.8.2 lib/puppet/pops/binder/bindings_validator_factory.rb
puppet-4.8.2-x86-mingw32 lib/puppet/pops/binder/bindings_validator_factory.rb
puppet-4.8.2-x64-mingw32 lib/puppet/pops/binder/bindings_validator_factory.rb
puppet-4.8.2-universal-darwin lib/puppet/pops/binder/bindings_validator_factory.rb
puppet-4.7.1 lib/puppet/pops/binder/bindings_validator_factory.rb
puppet-4.7.1-x86-mingw32 lib/puppet/pops/binder/bindings_validator_factory.rb