Method: Puppet::Parameter::ValueCollection#aliasvalue

Defined in:
lib/vendor/puppet/parameter/value_collection.rb

#aliasvalue(name, other) ⇒ Object



7
8
9
10
11
12
13
14
# File 'lib/vendor/puppet/parameter/value_collection.rb', line 7

def aliasvalue(name, other)
  other = other.to_sym
  unless value = match?(other)
    raise Puppet::DevError, "Cannot alias nonexistent value #{other}"
  end

  value.alias(name)
end