class PuppetModule::Pkg::Tasks::ModuleFinder

Public Class Methods

new(system, parser = Modulefile) click to toggle source
# File lib/puppet_module/pkg/tasks/module_finder.rb, line 5
def initialize(system, parser = Modulefile)
  @sys = system
  @parser = parser
end

Public Instance Methods

find_in(path) click to toggle source
# File lib/puppet_module/pkg/tasks/module_finder.rb, line 10
def find_in(path)
  @sys.ls(path).map do |mod|
    @parser.parse(File.join(path, mod, "Modulefile"))
  end
end