Sha256: abf5bbdffa1eab973ec5473aa9d303cdfbeb91d07491dd292364fe5f86be5cb4

Contents?: true

Size: 661 Bytes

Versions: 4

Compression:

Stored size: 661 Bytes

Contents

class MonoRepoDeps::Package::Indexer
  include MonoRepoDeps::Mixins

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

  include Inject

  sig do
    params(
      packages_lookup_subdir: String,
      project_root: String,
      package_dirname: String
    )
    .returns(T::Array[MonoRepoDeps::Package])
  end
  def call(packages_lookup_subdir, project_root, package_dirname)
    packages_path = File.join(
      project_root,
      packages_lookup_subdir,
      "**",
      MonoRepoDeps::PACKAGE_FILENAME
    )

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mono_repo_deps-0.2.1 lib/mono_repo_deps/package/indexer.rb
mono_repo_deps-0.2.0 lib/mono_repo_deps/package/indexer.rb
mono_repo_deps-0.1.14 lib/mono_repo_deps/package/indexer.rb
mono_repo_deps-0.1.13 lib/mono_repo_deps/package/indexer.rb