Class: Mona::Project::Factory
- Inherits:
-
Object
- Object
- Mona::Project::Factory
- Includes:
- Mixins
- Defined in:
- lib/mona/project/factory.rb
Instance Method Summary collapse
Methods included from Mixins
Instance Method Details
#call(root_path, init_proc:) ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/mona/project/factory.rb', line 11 def call(root_path, init_proc:) @tasks = [] @root_path = root_path instance_exec(&init_proc) project = Mona::Project.new( root_path: root_path, env: @env, configs_dir: @configs_dir, package_dirname: @package_dirname, packages_lookup_subdir: @packages_lookup_subdir, loader: @loader, tasks: @tasks ) end |