Class Puppet::Parameter::ValueCollection
In: lib/puppet/parameter.rb
Parent: Object

A collection of values and regexes, used for specifying what values are allowed in a given parameter.

Methods

aliasvalue   doc   empty?   match?   munge   new   newvalue   newvalues   regexes   validate   value   values  

Classes and Modules

Class Puppet::Parameter::ValueCollection::Value

Public Class methods

Public Instance methods

Return a doc string for all of the values in this parameter/property.

Does this collection contain any value definitions?

Can we match a given value?

If the specified value is allowed, then munge appropriately.

Define a new valid value for a property. You must provide the value itself, usually as a symbol, or a regex to match the value.

The first argument to the method is either the value itself or a regex. The second argument is an option hash; valid options are:

  • :event: The event that should be returned when this value is set.
  • :call: When to call any associated block. The default value is ``instead``, which means to call the value instead of calling the provider. You can also specify ``before`` or ``after``, which will call both the block and the provider, according to the order you specify (the ``first`` refers to when the block is called, not the provider).

Define one or more new values for our parameter.

Verify that the passed value is valid.

Return a single value instance.

Return the list of valid values.

[Validate]