Sha256: 156e73e9ad683c66032ee3db9720b9bafce26ebd4ce011f07ade072cf9c7634f

Contents?: true

Size: 544 Bytes

Versions: 4

Compression:

Stored size: 544 Bytes

Contents

class MonoRepoDeps::Project::Initializer
  include MonoRepoDeps::Mixins

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

  include Inject

  sig do
    params(dir: String).returns(MonoRepoDeps::Project)
  end
  def call(dir)
    project_root = find_root.call(dir)

    project = builder.call(project_root)

    project_packages = indexer.call(project.packages_lookup_subdir, project.root_path, project.package_dirname)

    project.set_packages(project_packages)

    project
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mono_repo_deps-0.2.1 lib/mono_repo_deps/project/initializer.rb
mono_repo_deps-0.2.0 lib/mono_repo_deps/project/initializer.rb
mono_repo_deps-0.1.14 lib/mono_repo_deps/project/initializer.rb
mono_repo_deps-0.1.13 lib/mono_repo_deps/project/initializer.rb