Class: Librarian::Puppet::Action::Resolve
- Inherits:
-
Action::Resolve
- Object
- Action::Resolve
- Librarian::Puppet::Action::Resolve
show all
- Includes:
- Util
- Defined in:
- lib/librarian/puppet/action/resolve.rb
Instance Method Summary
collapse
Methods included from Util
#clean_uri, #cp_r, #debug, #info, #module_name, #normalize_name, #rsync?, #warn
Instance Method Details
#resolver ⇒ Object
23
24
25
|
# File 'lib/librarian/puppet/action/resolve.rb', line 23
def resolver
Resolver.new(environment)
end
|
#run ⇒ Object
12
13
14
15
16
17
18
19
20
21
|
# File 'lib/librarian/puppet/action/resolve.rb', line 12
def run
super
manifests = environment.lock.manifests.select { |m| m.name }
dupes = manifests.group_by { |m| module_name(m.name) }.select { |_k, v| v.size > 1 }
dupes.each do |k, v|
warn("Dependency on module '#{k}' is fullfilled by multiple modules and only one will be used: #{v.map do |m|
m.name
end}")
end
end
|