Class: Librarian::Puppet::Dependency

Inherits:
Dependency
  • Object
show all
Includes:
Util
Defined in:
lib/librarian/puppet/dependency.rb

Instance Method Summary collapse

Methods included from Util

#clean_uri, #cp_r, #debug, #info, #module_name, #normalize_name, #rsync?, #warn

Constructor Details

#initialize(name, requirement, source) ⇒ Dependency

Returns a new instance of Dependency.

Raises:

  • (Error)


8
9
10
11
12
13
# File 'lib/librarian/puppet/dependency.rb', line 8

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