Librarian::Dsl::Receiver
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
Generated with the Darkfish Rdoc Generator 2.