Sha256: 79430561877141a9e52b6a185b00e7449c2d96f5d411c18203c2c68475215c72
Contents?: true
Size: 395 Bytes
Versions: 122
Compression:
Stored size: 395 Bytes
Contents
class Puppet::Settings::SymbolicEnumSetting < Puppet::Settings::BaseSetting attr_accessor :values def type :symbolic_enum end def munge(value) sym = value.to_sym if values.include?(sym) sym else raise Puppet::Settings::ValidationError, "Invalid value '#{value}' for parameter #{@name}. Allowed values are '#{values.join("', '")}'" end end end
Version data entries
122 entries across 122 versions & 2 rubygems
Version | Path |
---|---|
puppet-4.5.0-x64-mingw32 | lib/puppet/settings/symbolic_enum_setting.rb |
puppet-4.5.0-universal-darwin | lib/puppet/settings/symbolic_enum_setting.rb |