Sha256: 682abbf1837d7f8f516d2623d3ee6a2cfc0b3998a0a2c3680db2553013c5913c
Contents?: true
Size: 425 Bytes
Versions: 515
Compression:
Stored size: 425 Bytes
Contents
class Puppet::Settings::EnumSetting < Puppet::Settings::BaseSetting attr_accessor :values def type :enum end def munge(value) if values.include?(value) value else raise Puppet::Settings::ValidationError, _("Invalid value '%{value}' for parameter %{name}. Allowed values are '%{allowed_values}'") % { value: value, name: @name, allowed_values: values.join("', '") } end end end
Version data entries
515 entries across 515 versions & 2 rubygems