A barebones implementation of the Puppetfile DSL
@api private
# File lib/r10k/puppetfile.rb, line 171 def initialize(librarian) @librarian = librarian end
# File lib/r10k/puppetfile.rb, line 179 def forge(location) @librarian.set_forge(location) end
# File lib/r10k/puppetfile.rb, line 187 def method_missing(method, *args) raise NoMethodError, _("unrecognized declaration '%{method}'") % {method: method} end
# File lib/r10k/puppetfile.rb, line 175 def mod(name, args = nil) @librarian.add_module(name, args) end
# File lib/r10k/puppetfile.rb, line 183 def moduledir(location) @librarian.set_moduledir(location) end