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

#resolverObject



19
20
21
# File 'lib/librarian/puppet/action/resolve.rb', line 19

def resolver
  Resolver.new(environment)
end

#runObject



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

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