Current Path : /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parameter/ |
Current File : //opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parameter/boolean.rb |
require 'puppet/coercion' # This specialized {Puppet::Parameter} handles Boolean options, accepting lots # of strings and symbols for both truth and falsehood. # class Puppet::Parameter::Boolean < Puppet::Parameter def unsafe_munge(value) Puppet::Coercion.boolean(value) end def self.initvars super @value_collection.newvalues(*Puppet::Coercion.boolean_values) end end