Sha256: 81d174aaf480876c2bd61be1b0b39aa1de4ab95b0becf0364f9d032a1e63155c

Contents?: true

Size: 586 Bytes

Versions: 9

Compression:

Stored size: 586 Bytes

Contents

require 'librarian/action/resolve'

module Librarian
  module Puppet
    module Action
      class Resolve < Librarian::Action::Resolve
        include Librarian::Puppet::Util

        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

      end
    end
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
librarian-puppet-3.0.0 lib/librarian/puppet/action/resolve.rb
librarian-puppet-2.2.3 lib/librarian/puppet/action/resolve.rb
librarian-puppet-pr328-2.2.4 lib/librarian/puppet/action/resolve.rb
librarian-puppet-pr328-2.2.2 lib/librarian/puppet/action/resolve.rb
librarian-puppet-pr328-2.2.1 lib/librarian/puppet/action/resolve.rb
librarian-puppet-pr328-2.2.1pr328 lib/librarian/puppet/action/resolve.rb
librarian-puppet-2.2.1 lib/librarian/puppet/action/resolve.rb
librarian-puppet-2.2.0 lib/librarian/puppet/action/resolve.rb
librarian-puppet-2.1.1 lib/librarian/puppet/action/resolve.rb