Class: Librarian::Puppet::Dsl::Target
- Inherits:
-
Dsl::Target
- Object
- Dsl::Target
- Librarian::Puppet::Dsl::Target
- 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) = args.last.is_a?(Hash) ? args.pop : {} source = () || @source dep = dependency_type.new(name, args, source, 'Puppetfile') @dependencies << dep end |