Sha256: fbc3c562d2ed257fa8d0d7925598882fecafa8067e9d134ca7352c0fb2ef4ef4

Contents?: true

Size: 486 Bytes

Versions: 4

Compression:

Stored size: 486 Bytes

Contents

class MonoRepoDeps::Project::Builder
  include MonoRepoDeps::Mixins

  Inject = MonoRepoDeps::Deps[
    "project.factory",
  ]

  include Inject

  sig do
    params(project_root: String).returns(MonoRepoDeps::Project)
  end
  def call(project_root)
    project_file_path = "#{project_root}/#{MonoRepoDeps::PROJECT_FILENAME}"

    project_init_proc = proc { instance_eval(File.read(project_file_path)) }

    project = factory.call(project_root, init_proc: project_init_proc)
  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/builder.rb
mono_repo_deps-0.2.0 lib/mono_repo_deps/project/builder.rb
mono_repo_deps-0.1.14 lib/mono_repo_deps/project/builder.rb
mono_repo_deps-0.1.13 lib/mono_repo_deps/project/builder.rb