Class: Cejo::Projects::Main

Inherits:
Object
  • Object
show all
Defined in:
lib/cejo/projects/main.rb

Overview

Orchestrator of project building

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#builderObject (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

#runObject



20
21
22
# File 'lib/cejo/projects/main.rb', line 20

def run
  builder.run
end