Class: Puppet::Pops::Evaluator::Runtime3Support::SeverityProducer Private

Inherits:
Validation::SeverityProducer show all
Defined in:
lib/puppet/pops/evaluator/runtime3_support.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Configure the severity of failures

Constant Summary collapse

Issues =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

Puppet::Pops::Issues

Instance Method Summary collapse

Methods inherited from Validation::SeverityProducer

#[], #[]=, #assert_issue, #assert_severity, #severity, #should_report?

Constructor Details

#initializeSeverityProducer

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of SeverityProducer.



570
571
572
573
574
575
576
577
578
579
580
581
582
583
# File 'lib/puppet/pops/evaluator/runtime3_support.rb', line 570

def initialize
  super
  p = self
  # Issues triggering warning only if --debug is on
  if Puppet[:debug]
    p[Issues::EMPTY_RESOURCE_SPECIALIZATION] = :warning
  else
    p[Issues::EMPTY_RESOURCE_SPECIALIZATION] = :ignore
  end

  # Store config issues, ignore or warning
  p[Issues::RT_NO_STORECONFIGS_EXPORT]    = Puppet[:storeconfigs] ? :ignore : :warning
  p[Issues::RT_NO_STORECONFIGS]           = Puppet[:storeconfigs] ? :ignore : :warning
end