class R10K::Puppetfile::DSL

Public Class Methods

new(librarian) click to toggle source

A barebones implementation of the Puppetfile DSL

@api private

# File lib/r10k/puppetfile.rb, line 171
def initialize(librarian)
  @librarian = librarian
end

Public Instance Methods

forge(location) click to toggle source
# File lib/r10k/puppetfile.rb, line 179
def forge(location)
  @librarian.set_forge(location)
end
method_missing(method, *args) click to toggle source
# File lib/r10k/puppetfile.rb, line 187
def method_missing(method, *args)
  raise NoMethodError, _("unrecognized declaration '%{method}'") % {method: method}
end
mod(name, args = nil) click to toggle source
# File lib/r10k/puppetfile.rb, line 175
def mod(name, args = nil)
  @librarian.add_module(name, args)
end
moduledir(location) click to toggle source
# File lib/r10k/puppetfile.rb, line 183
def moduledir(location)
  @librarian.set_moduledir(location)
end