Sha256: bf2af06fc099c7523a7d914cbb01551e2c432771ac13e13ceaf0e0561d8a2199

Contents?: true

Size: 949 Bytes

Versions: 32

Compression:

Stored size: 949 Bytes

Contents

# Configures validation suitable for 3.1 + iteration
#
class Puppet::Pops::Validation::ValidatorFactory_3_1 < Puppet::Pops::Validation::Factory
  Issues = Puppet::Pops::Issues

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

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

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

    # Configure each issue that should **not** be an error
    #
    # Validate as per the current runtime configuration
    p[Issues::RT_NO_STORECONFIGS_EXPORT]    = Puppet[:storeconfigs] ? :ignore : :warning
    p[Issues::RT_NO_STORECONFIGS]           = Puppet[:storeconfigs] ? :ignore : :warning

    p[Issues::NAME_WITH_HYPHEN]             = :deprecation
    p[Issues::DEPRECATED_NAME_AS_TYPE]      = :deprecation

    p
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
puppet-3.6.2 lib/puppet/pops/validation/validator_factory_3_1.rb
puppet-3.6.2-x86-mingw32 lib/puppet/pops/validation/validator_factory_3_1.rb
puppet-3.6.1 lib/puppet/pops/validation/validator_factory_3_1.rb
puppet-3.6.1-x86-mingw32 lib/puppet/pops/validation/validator_factory_3_1.rb
puppet-3.6.0 lib/puppet/pops/validation/validator_factory_3_1.rb
puppet-3.6.0-x86-mingw32 lib/puppet/pops/validation/validator_factory_3_1.rb
puppet-3.6.0.rc1 lib/puppet/pops/validation/validator_factory_3_1.rb
puppet-3.6.0.rc1-x86-mingw32 lib/puppet/pops/validation/validator_factory_3_1.rb
puppet-3.5.1 lib/puppet/pops/validation/validator_factory_3_1.rb
puppet-3.5.1-x86-mingw32 lib/puppet/pops/validation/validator_factory_3_1.rb
puppet-3.5.1.rc1 lib/puppet/pops/validation/validator_factory_3_1.rb
puppet-3.5.1.rc1-x86-mingw32 lib/puppet/pops/validation/validator_factory_3_1.rb
puppet-3.5.0.rc3 lib/puppet/pops/validation/validator_factory_3_1.rb
puppet-3.5.0.rc3-x86-mingw32 lib/puppet/pops/validation/validator_factory_3_1.rb
puppet-3.5.0.rc2 lib/puppet/pops/validation/validator_factory_3_1.rb
puppet-3.5.0.rc2-x86-mingw32 lib/puppet/pops/validation/validator_factory_3_1.rb
puppet-3.5.0.rc1 lib/puppet/pops/validation/validator_factory_3_1.rb
puppet-3.5.0.rc1-x86-mingw32 lib/puppet/pops/validation/validator_factory_3_1.rb
puppet-3.4.3 lib/puppet/pops/validation/validator_factory_3_1.rb
puppet-3.4.2 lib/puppet/pops/validation/validator_factory_3_1.rb