class PuppetfileEditor::DSL
A barebones implementation of the Puppetfile
DSL
@api private
Public Class Methods
new(librarian)
click to toggle source
# File lib/puppetfile_editor/puppetfile.rb, line 130 def initialize(librarian) @librarian = librarian end
Public Instance Methods
forge(url)
click to toggle source
# File lib/puppetfile_editor/puppetfile.rb, line 138 def forge(url) @librarian.update_forge_url(url) end
method_missing(method, *_why_am_i_here)
click to toggle source
# File lib/puppetfile_editor/puppetfile.rb, line 144 def method_missing(method, *_why_am_i_here) raise NoMethodError, "Unrecognized declaration: '#{method}'" end
mod(name, args = nil)
click to toggle source
# File lib/puppetfile_editor/puppetfile.rb, line 134 def mod(name, args = nil) @librarian.add_module(name, args) end
respond_to_missing?(method, include_private)
click to toggle source
# File lib/puppetfile_editor/puppetfile.rb, line 142 def respond_to_missing?(method, include_private); end