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 110 def initialize(librarian) @librarian = librarian end
Public Instance Methods
forge(location)
click to toggle source
# File lib/r10k/puppetfile.rb, line 118 def forge(location) @librarian.set_forge(location) end
method_missing(method, *args)
click to toggle source
# File lib/r10k/puppetfile.rb, line 126 def method_missing(method, *args) raise NoMethodError, "unrecognized declaration '#{method}'" end
mod(name, args = nil)
click to toggle source
# File lib/r10k/puppetfile.rb, line 114 def mod(name, args = nil) @librarian.add_module(name, args) end
moduledir(location)
click to toggle source
# File lib/r10k/puppetfile.rb, line 122 def moduledir(location) @librarian.set_moduledir(location) end