Class: Librarian::Puppet::Resolver::Implementation
- Inherits:
-
Resolver::Implementation
- Object
- Resolver::Implementation
- Librarian::Puppet::Resolver::Implementation
- Defined in:
- lib/librarian/puppet/resolver.rb
Instance Method Summary collapse
Instance Method Details
#sourced_dependency_for(dependency) ⇒ Object
8 9 10 11 12 13 |
# File 'lib/librarian/puppet/resolver.rb', line 8 def sourced_dependency_for(dependency) return dependency if dependency.source source = dependency_source_map[dependency.name] || default_source dependency.class.new(dependency.name, dependency.requirement, source, dependency.parent) end |