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.34.0 lib/puppet/parameter/boolean.rb
puppet-7.34.0-x86-mingw32 lib/puppet/parameter/boolean.rb
puppet-7.34.0-x64-mingw32 lib/puppet/parameter/boolean.rb
puppet-7.34.0-universal-darwin lib/puppet/parameter/boolean.rb
puppet-7.33.0 lib/puppet/parameter/boolean.rb
puppet-7.33.0-x86-mingw32 lib/puppet/parameter/boolean.rb
puppet-7.33.0-x64-mingw32 lib/puppet/parameter/boolean.rb
puppet-7.33.0-universal-darwin lib/puppet/parameter/boolean.rb
puppet-7.32.1 lib/puppet/parameter/boolean.rb
puppet-7.32.1-x86-mingw32 lib/puppet/parameter/boolean.rb
puppet-7.32.1-x64-mingw32 lib/puppet/parameter/boolean.rb
puppet-7.32.1-universal-darwin lib/puppet/parameter/boolean.rb
puppet-7.31.0 lib/puppet/parameter/boolean.rb
puppet-7.31.0-x86-mingw32 lib/puppet/parameter/boolean.rb
puppet-7.31.0-x64-mingw32 lib/puppet/parameter/boolean.rb
puppet-7.31.0-universal-darwin lib/puppet/parameter/boolean.rb
puppet-7.30.0 lib/puppet/parameter/boolean.rb
puppet-7.30.0-x86-mingw32 lib/puppet/parameter/boolean.rb
puppet-7.30.0-x64-mingw32 lib/puppet/parameter/boolean.rb
puppet-7.30.0-universal-darwin lib/puppet/parameter/boolean.rb