HEX
Server: Apache
System: Linux sg241.singhost.net 2.6.32-896.16.1.lve1.4.51.el6.x86_64 #1 SMP Wed Jan 17 13:19:23 EST 2018 x86_64
User: honghock (909)
PHP: 8.0.30
Disabled: passthru,system,shell_exec,show_source,exec,popen,proc_open
Upload Files
File: //proc/self/root/usr/lib/ruby/site_ruby/1.8/puppet/indirector/node/plain.rb
require 'puppet/node'
require 'puppet/indirector/plain'

class Puppet::Node::Plain < Puppet::Indirector::Plain
  desc "Always return an empty node object. Assumes you keep track of nodes
    in flat file manifests.  You should use it when you don't have some other,
    functional source you want to use, as the compiler will not work without a
    valid node terminus.

    Note that class is responsible for merging the node's facts into the
    node instance before it is returned."

  # Just return an empty node.
  def find(request)
    node = super
    node.environment = request.environment
    node.fact_merge
    node
  end
end