| Class | Puppet::Network::AuthStore::Declaration |
| In: |
lib/puppet/network/authstore.rb
|
| Parent: | Object |
A single declaration. Stores the info for a given declaration, provides the methods for determining whether a declaration matches, and handles sorting the declarations appropriately.
| length | [RW] | The length. Only used for iprange and domain. |
| name | [RW] | The name: :ip or :domain |
| pattern | [R] | The pattern we‘re matching against. Can be an IPAddr instance, or an array of strings, resulting from reversing a hostname or domain name. |
| type | [R] | The type of declaration: either :allow or :deny |
interpolate a pattern to replace any backreferences by the given match for instance if our pattern is $1.reductivelabs.com and we‘re called with a MatchData whose capture 1 is puppet we‘ll return a pattern of puppet.reductivelabs.com