Sha256: 8bb9275598e8dc5ee2704d17548217fdb11f88c9eae9e3f7c63e2f6d0fdb4567
Contents?: true
Size: 675 Bytes
Versions: 234
Compression:
Stored size: 675 Bytes
Contents
require '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" end end end
Version data entries
234 entries across 234 versions & 2 rubygems