Sha256: b51802b7944d562830460a0488390d6bca48de816fda23f8e53c0f149a813a13
Contents?: true
Size: 802 Bytes
Versions: 2
Compression:
Stored size: 802 Bytes
Contents
module R10K module ModuleLoader class Puppetfile class DSL # A barebones implementation of the Puppetfile DSL # # @api private def initialize(librarian) @librarian = librarian end def mod(name, args = nil) if args.is_a?(Hash) opts = args else opts = { version: args } end @librarian.add_module(name, opts) end def forge(location) @librarian.set_forge(location) end def moduledir(location) @librarian.set_moduledir(location) end def method_missing(method, *args) raise NoMethodError, _("unrecognized declaration '%{method}'") % {method: method} end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
r10k-3.11.0 | lib/r10k/module_loader/puppetfile/dsl.rb |
r10k-3.10.0 | lib/r10k/module_loader/puppetfile/dsl.rb |