class Puppet::Pops::Lookup::ExplainModule

Public Class Methods

new(parent, module_name) click to toggle source
    # File lib/puppet/pops/lookup/explainer.rb
213 def initialize(parent, module_name)
214   super(parent)
215   @module_name = module_name
216 end

Public Instance Methods

dump_on(io, indent, first_indent) click to toggle source
    # File lib/puppet/pops/lookup/explainer.rb
218 def dump_on(io, indent, first_indent)
219   case @event
220   when :module_not_found
221     io << indent << 'Module "' << @module_name << "\" not found\n"
222   when :module_provider_not_found
223     io << indent << 'Module data provider for module "' << @module_name << "\" not found\n"
224   end
225 end
module_not_found() click to toggle source
    # File lib/puppet/pops/lookup/explainer.rb
227 def module_not_found
228   @event = :module_not_found
229 end
module_provider_not_found() click to toggle source
    # File lib/puppet/pops/lookup/explainer.rb
231 def module_provider_not_found
232   @event = :module_provider_not_found
233 end
type() click to toggle source
    # File lib/puppet/pops/lookup/explainer.rb
235 def type
236   :module
237 end