Sha256: a3024f2d187ff33b95d6b71e20dd28eae9a76d3585ee9349623a50696b4b9d24
Contents?: true
Size: 1.38 KB
Versions: 118
Compression:
Stored size: 1.38 KB
Contents
require 'puppet/node' require 'puppet/indirector/yaml' # This is a WriteOnlyYaml terminus that exists only for the purpose of being able to write # node cache data that later can be read by the YAML terminus. # The use case this supports is to make it possible to search among the "current nodes" # when Puppet DB (recommended) or other central storage of information is not available. # # @see puppet issue 16753 # @see Puppet::Application::Master#setup_node_cache # @api private # class Puppet::Node::WriteOnlyYaml < Puppet::Indirector::Yaml def initialize #TRANSLATORS 'Puppet::Node::WriteOnlyYaml' is a class and should not be translated message = _('Puppet::Node::WriteOnlyYaml is deprecated and will be removed in a future release of Puppet.') Puppet.warn_once('deprecations', 'Puppet::Node::WriteOnlyYaml', message) super end desc "(Deprecated) Store node information as flat files, serialized using YAML, does not deserialize (write only)." # Overridden to always return nil. This is a write only terminus. # @param [Object] request Ignored. # @return [nil] This implementation always return nil' # @api public def find(request) nil end # Overridden to always return nil. This is a write only terminus. # @param [Object] request Ignored. # @return [nil] This implementation always return nil # @api public def search(request) nil end end
Version data entries
118 entries across 118 versions & 2 rubygems