Method: Puppet::Resource::Type#match

Defined in:
lib/puppet/resource/type.rb

#match(string) ⇒ Object

This is only used for node names, and really only when the node name is a regexp.



121
122
123
124
125
# File 'lib/puppet/resource/type.rb', line 121

def match(string)
  return string.to_s.downcase == name unless name_is_regex?

  @match = @name.match(string)
end