class Puppet::Pops::Lookup::ExplainDataProvider
Public Class Methods
new(parent, provider)
click to toggle source
Calls superclass method
Puppet::Pops::Lookup::ExplainTreeNode::new
# File lib/puppet/pops/lookup/explainer.rb 338 def initialize(parent, provider) 339 super(parent) 340 @provider = provider 341 end
Public Instance Methods
dump_on(io, indent, first_indent)
click to toggle source
# File lib/puppet/pops/lookup/explainer.rb 343 def dump_on(io, indent, first_indent) 344 io << first_indent << @provider.name << "\n" 345 indent = increase_indent(indent) 346 if @provider.respond_to?(:config_path) 347 path = @provider.config_path 348 io << indent << 'Using configuration "' << path.to_s << "\"\n" unless path.nil? 349 end 350 branches.each {|b| b.dump_on(io, indent, indent)} 351 dump_outcome(io, indent) 352 end
to_hash()
click to toggle source
Calls superclass method
Puppet::Pops::Lookup::ExplainTreeNode#to_hash
# File lib/puppet/pops/lookup/explainer.rb 354 def to_hash 355 hash = super 356 hash[:name] = @provider.name 357 if @provider.respond_to?(:config_path) 358 path = @provider.config_path 359 hash[:configuration_path] = path.to_s unless path.nil? 360 end 361 hash[:module] = @provider.module_name if @provider.is_a?(ModuleDataProvider) 362 hash 363 end
type()
click to toggle source
# File lib/puppet/pops/lookup/explainer.rb 365 def type 366 :data_provider 367 end