Method: Puppet::Pops::Lookup::ExplainDataProvider#dump_on

Defined in:
lib/puppet/pops/lookup/explainer.rb

#dump_on(io, indent, first_indent) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



345
346
347
348
349
350
351
352
353
354
# File 'lib/puppet/pops/lookup/explainer.rb', line 345

def dump_on(io, indent, first_indent)
  io << first_indent << @provider.name << "\n"
  indent = increase_indent(indent)
  if @provider.respond_to?(:config_path)
    path = @provider.config_path
    io << indent << 'Using configuration "' << path.to_s << "\"\n" unless path.nil?
  end
  branches.each { |b| b.dump_on(io, indent, indent) }
  dump_outcome(io, indent)
end