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.
8 9 10 11 12 |
# File 'lib/ccios/pbxproj_parser.rb', line 8 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.
6 7 8 |
# File 'lib/ccios/pbxproj_parser.rb', line 6 def source_path @source_path end |
Instance Method Details
#app_project ⇒ Object
14 15 16 |
# File 'lib/ccios/pbxproj_parser.rb', line 14 def app_project project_for(@config.app.project) end |
#app_target ⇒ Object
51 52 53 |
# File 'lib/ccios/pbxproj_parser.rb', line 51 def app_target target_for(app_project, @config.app.target) end |
#coordinator_group ⇒ Object
31 32 33 34 |
# File 'lib/ccios/pbxproj_parser.rb', line 31 def coordinator_group path = @config.app.coordinator.group app_project[path] end |
#core_project ⇒ Object
18 19 20 |
# File 'lib/ccios/pbxproj_parser.rb', line 18 def core_project project_for(@config.core.project) end |
#core_target ⇒ Object
55 56 57 |
# File 'lib/ccios/pbxproj_parser.rb', line 55 def core_target target_for(core_project, @config.core.target) end |
#data_project ⇒ Object
22 23 24 |
# File 'lib/ccios/pbxproj_parser.rb', line 22 def data_project project_for(@config.data.project) end |
#data_target ⇒ Object
59 60 61 |
# File 'lib/ccios/pbxproj_parser.rb', line 59 def data_target target_for(data_project, @config.data.target) end |
#interactor_group ⇒ Object
36 37 38 39 |
# File 'lib/ccios/pbxproj_parser.rb', line 36 def interactor_group path = @config.core.interactor.group core_project[path] end |
#presenter_group ⇒ Object
26 27 28 29 |
# File 'lib/ccios/pbxproj_parser.rb', line 26 def presenter_group path = @config.app.presenter.group app_project[path] end |
#repository_core_group ⇒ Object
41 42 43 44 |
# File 'lib/ccios/pbxproj_parser.rb', line 41 def repository_core_group path = @config.core.repository.group core_project[path] end |
#repository_data_group ⇒ Object
46 47 48 49 |
# File 'lib/ccios/pbxproj_parser.rb', line 46 def repository_data_group path = @config.data.repository.group data_project[path] end |
#save ⇒ Object
63 64 65 66 67 |
# File 'lib/ccios/pbxproj_parser.rb', line 63 def save app_project.save core_project.save data_project.save end |