Parent

Methods

Librarian::Puppet::Dsl::Receiver

Attributes

specfile[R]

Public Instance Methods

modulefile() click to toggle source

implement the ‘modulefile’ syntax for Puppetfile

# File lib/librarian/puppet/dsl.rb, line 42
def modulefile
  File.read(Pathname.new(specfile).parent.join('Modulefile')).lines.each do |line|
    regexp = /\s*dependency\s+('|")([^'"]+)\11\\s*(?:,\s*('|")([^'"]+)\33))?/
    regexp =~ line && mod($2, $4)
  end
end
run(specfile = nil) click to toggle source

save the specfile and call librarian

# File lib/librarian/puppet/dsl.rb, line 36
def run(specfile = nil)
  @specfile = specfile
  super
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.