Class: Librarian::Puppet::Action::Resolve

Inherits:
Action::Resolve
  • Object
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

#runObject



9
10
11
12
13
14
15
16
# File 'lib/librarian/puppet/action/resolve.rb', line 9

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{|m|m.name}}")
  end
end