Class: Cejo::Projects::Main
- Inherits:
-
Object
- Object
- Cejo::Projects::Main
- Defined in:
- lib/cejo/projects/main.rb
Overview
Orchestrator of project building
Instance Attribute Summary collapse
-
#builder ⇒ Object
readonly
Returns the value of attribute builder.
Instance Method Summary collapse
-
#initialize(services, name) ⇒ Main
constructor
A new instance of Main.
- #run ⇒ Object
Constructor Details
#initialize(services, name) ⇒ Main
Returns a new instance of Main.
11 12 13 14 15 16 17 18 |
# File 'lib/cejo/projects/main.rb', line 11 def initialize(services, name) folders = services.resolve(:folders) utils = services.resolve(:utils) projects_parser = ProjectsParser.new(folders, utils, name) project_info = ProjectInfo.new(folders, projects_parser.project) @builder = Builder.new folders.local, utils, project_info end |
Instance Attribute Details
#builder ⇒ Object (readonly)
Returns the value of attribute builder.
9 10 11 |
# File 'lib/cejo/projects/main.rb', line 9 def builder @builder end |
Instance Method Details
#run ⇒ Object
20 21 22 |
# File 'lib/cejo/projects/main.rb', line 20 def run builder.run end |