Class: PBXProjParser
- Inherits:
-
Object
- Object
- PBXProjParser
- Defined in:
- lib/ccios/pbxproj_parser.rb
Instance Attribute Summary collapse
-
#source_path ⇒ Object
Returns the value of attribute source_path.
Instance Method Summary collapse
- #app_project ⇒ Object
- #app_target ⇒ Object
- #coordinator_group ⇒ Object
- #core_project ⇒ Object
- #core_target ⇒ Object
- #data_project ⇒ Object
- #data_target ⇒ Object
-
#initialize(source_path, config) ⇒ PBXProjParser
constructor
A new instance of PBXProjParser.
- #interactor_group ⇒ Object
- #presenter_group ⇒ Object
- #repository_core_group ⇒ Object
- #repository_data_group ⇒ Object
- #save ⇒ Object
Constructor Details
#initialize(source_path, config) ⇒ PBXProjParser
Returns a new instance of PBXProjParser.
7 8 9 10 11 |
# File 'lib/ccios/pbxproj_parser.rb', line 7 def initialize(source_path, config) @source_path = source_path @config = config @projects = {} end |
Instance Attribute Details
#source_path ⇒ Object
Returns the value of attribute source_path.
5 6 7 |
# File 'lib/ccios/pbxproj_parser.rb', line 5 def source_path @source_path end |
Instance Method Details
#app_project ⇒ Object
13 14 15 |
# File 'lib/ccios/pbxproj_parser.rb', line 13 def app_project project_for(@config.app.project) end |
#app_target ⇒ Object
50 51 52 |
# File 'lib/ccios/pbxproj_parser.rb', line 50 def app_target target_for(app_project, @config.app.target) end |
#coordinator_group ⇒ Object
30 31 32 33 |
# File 'lib/ccios/pbxproj_parser.rb', line 30 def coordinator_group path = @config.app.coordinator.group app_project[path] end |
#core_project ⇒ Object
17 18 19 |
# File 'lib/ccios/pbxproj_parser.rb', line 17 def core_project project_for(@config.core.project) end |
#core_target ⇒ Object
54 55 56 |
# File 'lib/ccios/pbxproj_parser.rb', line 54 def core_target target_for(core_project, @config.core.target) end |
#data_project ⇒ Object
21 22 23 |
# File 'lib/ccios/pbxproj_parser.rb', line 21 def data_project project_for(@config.data.project) end |
#data_target ⇒ Object
58 59 60 |
# File 'lib/ccios/pbxproj_parser.rb', line 58 def data_target target_for(data_project, @config.data.target) end |
#interactor_group ⇒ Object
35 36 37 38 |
# File 'lib/ccios/pbxproj_parser.rb', line 35 def interactor_group path = @config.core.interactor.group core_project[path] end |
#presenter_group ⇒ Object
25 26 27 28 |
# File 'lib/ccios/pbxproj_parser.rb', line 25 def presenter_group path = @config.app.presenter.group app_project[path] end |
#repository_core_group ⇒ Object
40 41 42 43 |
# File 'lib/ccios/pbxproj_parser.rb', line 40 def repository_core_group path = @config.core.repository.group core_project[path] end |
#repository_data_group ⇒ Object
45 46 47 48 |
# File 'lib/ccios/pbxproj_parser.rb', line 45 def repository_data_group path = @config.data.repository.group data_project[path] end |
#save ⇒ Object
62 63 64 65 66 |
# File 'lib/ccios/pbxproj_parser.rb', line 62 def save app_project.save core_project.save data_project.save end |