Class: Mona::Package::Indexer

Inherits:
Object
  • Object
show all
Includes:
Deps[ "package.builder", ], Mixins
Defined in:
lib/mona/package/indexer.rb

Constant Summary collapse

Inject =
Mona::Deps[
  "package.builder",
]

Instance Method Summary collapse

Methods included from Mixins

included

Instance Method Details

#call(packages_lookup_subdir, project_root, package_dirname) ⇒ Object



18
19
20
21
22
23
24
25
26
27
28
29
# File 'lib/mona/package/indexer.rb', line 18

def call(packages_lookup_subdir, project_root, package_dirname)
  packages_path = File.join(
    project_root,
    packages_lookup_subdir,
    "**",
    Mona::PACKAGE_FILENAME
  )

  Dir[packages_path].map do |package_file_path|
    builder.call(package_file_path, project_root, package_dirname)
  end
end