Sha256: 5de6173f34af766c09c2afa68a76b0f555b1264e2bf77acc31ce56305929ab38

Contents?: true

Size: 423 Bytes

Versions: 11

Compression:

Stored size: 423 Bytes

Contents

module Librarian
  module Puppet

    class Dependency < Librarian::Dependency

      include Librarian::Puppet::Util

      def initialize(name, requirement, source)
        # Issue #235 fail if forge source is not defined
        raise Error, "forge entry is not defined in Puppetfile" if source.instance_of?(Array) && source.empty?

        super(normalize_name(name), requirement, source)
      end

    end

  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
librarian-puppet-3.0.0 lib/librarian/puppet/dependency.rb
librarian-puppet-2.2.3 lib/librarian/puppet/dependency.rb
librarian-puppet-pr328-2.2.4 lib/librarian/puppet/dependency.rb
librarian-puppet-pr328-2.2.2 lib/librarian/puppet/dependency.rb
librarian-puppet-pr328-2.2.1 lib/librarian/puppet/dependency.rb
librarian-puppet-pr328-2.2.1pr328 lib/librarian/puppet/dependency.rb
librarian-puppet-2.2.1 lib/librarian/puppet/dependency.rb
librarian-puppet-2.2.0 lib/librarian/puppet/dependency.rb
librarian-puppet-2.1.1 lib/librarian/puppet/dependency.rb
librarian-puppet-1.5.0 lib/librarian/puppet/dependency.rb
librarian-puppet-2.1.0 lib/librarian/puppet/dependency.rb