Sha256: 7debc256d35af0694dcb33992d16b306a7e02fb72f4f7d9de290da2b3bbf2de2

Contents?: true

Size: 406 Bytes

Versions: 120

Compression:

Stored size: 406 Bytes

Contents

require_relative '../../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

Version data entries

120 entries across 120 versions & 1 rubygems

Version Path
puppet-7.11.0 lib/puppet/parameter/boolean.rb
puppet-7.11.0-x86-mingw32 lib/puppet/parameter/boolean.rb
puppet-7.11.0-x64-mingw32 lib/puppet/parameter/boolean.rb
puppet-7.11.0-universal-darwin lib/puppet/parameter/boolean.rb
puppet-7.10.0 lib/puppet/parameter/boolean.rb
puppet-7.10.0-x86-mingw32 lib/puppet/parameter/boolean.rb
puppet-7.10.0-x64-mingw32 lib/puppet/parameter/boolean.rb
puppet-7.10.0-universal-darwin lib/puppet/parameter/boolean.rb
puppet-7.9.0 lib/puppet/parameter/boolean.rb
puppet-7.9.0-x86-mingw32 lib/puppet/parameter/boolean.rb
puppet-7.9.0-x64-mingw32 lib/puppet/parameter/boolean.rb
puppet-7.9.0-universal-darwin lib/puppet/parameter/boolean.rb
puppet-7.8.0 lib/puppet/parameter/boolean.rb
puppet-7.8.0-x86-mingw32 lib/puppet/parameter/boolean.rb
puppet-7.8.0-x64-mingw32 lib/puppet/parameter/boolean.rb
puppet-7.8.0-universal-darwin lib/puppet/parameter/boolean.rb
puppet-7.7.0 lib/puppet/parameter/boolean.rb
puppet-7.7.0-x86-mingw32 lib/puppet/parameter/boolean.rb
puppet-7.7.0-x64-mingw32 lib/puppet/parameter/boolean.rb
puppet-7.7.0-universal-darwin lib/puppet/parameter/boolean.rb