Sha256: 7327c17ff3b688c45d9a9899c2cb6838a57a38cb6ed03c171ccf2428a5787ce9

Contents?: true

Size: 512 Bytes

Versions: 2

Compression:

Stored size: 512 Bytes

Contents

class Mona::Project::Initializer
  include Mona::Mixins

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

  include Inject

  sig do
    params(dir: String).returns(Mona::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

2 entries across 2 versions & 1 rubygems

Version Path
mona-0.2.3 lib/mona/project/initializer.rb
mona-0.2.2 lib/mona/project/initializer.rb