Sha256: 267189bba9f867e81843cd53664754c2347a3661ac3aa6c4b198838468cd2c0a
Contents?: true
Size: 712 Bytes
Versions: 120
Compression:
Stored size: 712 Bytes
Contents
require_relative '../../puppet/settings/base_setting' # A specialization of the file setting to allow boolean values. # # The autosign value can be either a boolean or a file path, and if the setting # is a file path then it may have a owner/group/mode specified. # # @api private class Puppet::Settings::AutosignSetting < Puppet::Settings::FileSetting def munge(value) if ['true', true].include? value true elsif ['false', false, nil].include? value false elsif Puppet::Util.absolute_path?(value) value else raise Puppet::Settings::ValidationError, _("Invalid autosign value %{value}: must be 'true'/'false' or an absolute path") % { value: value } end end end
Version data entries
120 entries across 120 versions & 1 rubygems