Information about a Module and its loaders. TODO: should have reference to real model element containing all module data; this is faking it TODO: Should use Puppet::Module to get the metadata (as a hash) - a somewhat blunt instrument, but that is
what is available with a reasonable API.
The Puppet::Module this LoaderModuleData represents in the loader configuration
# File lib/puppet/pops/loaders.rb, line 176 def dependency_names @puppet_module.dependencies_as_modules.collect(&:name) end
# File lib/puppet/pops/loaders.rb, line 152 def name @puppet_module.name end
# File lib/puppet/pops/loaders.rb, line 160 def path @puppet_module.path end
# File lib/puppet/pops/loaders.rb, line 164 def resolved? @state == :resolved end
# File lib/puppet/pops/loaders.rb, line 168 def restrict_to_dependencies? @puppet_module.has_metadata? end
# File lib/puppet/pops/loaders.rb, line 172 def unmet_dependencies? @puppet_module.unmet_dependencies.any? end
# File lib/puppet/pops/loaders.rb, line 156 def version @puppet_module.version end
@param #puppet_module [Puppet::Module] the module instance for the module being represented
# File lib/puppet/pops/loaders.rb, line 144 def initialize(puppet_module) @state = :initial @puppet_module = puppet_module @resolutions = [] @public_loader = nil @private_loader = nil end