Class: Xcake::ProjectStructureGenerator
- Inherits:
-
Generator
show all
- Defined in:
- lib/xcake/generator/project_structure_generator.rb
Overview
This class handles resolving the structure
of a project. Making sure that the structure of the
project is one Xcode can open and makes sense.
As part of this it will create default configurations
if none are provided and will make sure both the project
and targets have all of the same configurations.
Instance Attribute Summary collapse
Attributes inherited from Generator
#context
Instance Method Summary
collapse
Methods inherited from Generator
#initialize, plugins_location
Methods included from Visitor
#item_name, #leave, #visit
Methods included from Plugin
included
Methods included from Dependency
included
Instance Attribute Details
Returns the value of attribute project.
10
11
12
|
# File 'lib/xcake/generator/project_structure_generator.rb', line 10
def project
@project
end
|
Instance Method Details
#leave_configuration(configuration) ⇒ Object
34
35
|
# File 'lib/xcake/generator/project_structure_generator.rb', line 34
def leave_configuration(configuration)
end
|
#leave_project(project) ⇒ Object
17
18
|
# File 'lib/xcake/generator/project_structure_generator.rb', line 17
def leave_project(project)
end
|
#leave_target(target) ⇒ Object
28
29
|
# File 'lib/xcake/generator/project_structure_generator.rb', line 28
def leave_target(target)
end
|
#visit_configuration(configuration) ⇒ Object
31
32
|
# File 'lib/xcake/generator/project_structure_generator.rb', line 31
def visit_configuration(configuration)
end
|
#visit_project(project) ⇒ Object
12
13
14
15
|
# File 'lib/xcake/generator/project_structure_generator.rb', line 12
def visit_project(project)
EventHooks.run_hook :before_resolving_project_structure, project
@project = project
end
|
#visit_target(target) ⇒ Object
20
21
22
23
24
25
26
|
# File 'lib/xcake/generator/project_structure_generator.rb', line 20
def visit_target(target)
EventHooks.run_hook :before_resolving_target_structure, target
@project.all_configurations.each do |c|
target.configuration(c.name, c.type)
end
end
|