Class: Librarian::Puppet::Dsl::Target

Inherits:
Dsl::Target
  • Object
show all
Defined in:
lib/librarian/puppet/dsl.rb

Instance Method Summary collapse

Instance Method Details

#dependency(name, *args) ⇒ Object



63
64
65
66
67
68
# File 'lib/librarian/puppet/dsl.rb', line 63

def dependency(name, *args)
  options = args.last.is_a?(Hash) ? args.pop : {}
  source = source_from_options(options) || @source
  dep = dependency_type.new(name, args, source, 'Puppetfile')
  @dependencies << dep
end