lib/puppet/pops/validation/checker3_1.rb
# Checks that the value is a valid UpperCaseWord (a CLASSREF), and optionally if it contains a hypen.
# DOH: QualifiedReferences are created with LOWER CASE NAMES at parse time
Checks that the value is a valid UpperCaseWord (a CLASSREF), and optionally if it contains a hypen.
DOH: QualifiedReferences are created with LOWER CASE NAMES at parse time
Checks that the value is a valid UpperCaseWord ( a CLASSREF ) and optionally if it contains a hypen . DOH : QualifiedReferences are created with LOWER CASE NAMES at parse time
def check_QualifiedReference(o)
    if o.value !~ Puppet::Pops::Patterns::CLASSREF
      acceptor.accept(Issues::ILLEGAL_CLASSREF, o, {:name=>o.value})
    elsif (acceptor.will_accept? Issues::NAME_WITH_HYPHEN) && o.value.include?('-')
      acceptor.accept(Issues::NAME_WITH_HYPHEN, o, {:name => o.value})
    end
  end
def check_QualifiedReference ( o ) if o . value !~ Puppet :: Pops :: Patterns :: CLASSREF acceptor . accept ( Issues :: ILLEGAL_CLASSREF , o , { :name => o . value } ) elsif ( acceptor . will_accept? Issues :: NAME_WITH_HYPHEN ) && o . value . include? ( '-' ) acceptor . accept ( Issues :: NAME_WITH_HYPHEN , o , { :name => o . value } ) end end
Checks that the value is a valid UpperCaseWord (a CLASSREF), and optionally if it contains a hypen.
Checks that the value is a valid UpperCaseWord ( a CLASSREF ) and optionally if it contains a hypen .
# Is this a valid qualified name?
o
<not_specific>