Class: PBXProjParser

Inherits:
Object
  • Object
show all
Defined in:
lib/ccios/pbxproj_parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_pathObject

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_projectObject



13
14
15
# File 'lib/ccios/pbxproj_parser.rb', line 13

def app_project
  project_for(@config.app.project)
end

#app_targetObject



50
51
52
# File 'lib/ccios/pbxproj_parser.rb', line 50

def app_target
  target_for(app_project, @config.app.target)
end

#coordinator_groupObject



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_projectObject



17
18
19
# File 'lib/ccios/pbxproj_parser.rb', line 17

def core_project
  project_for(@config.core.project)
end

#core_targetObject



54
55
56
# File 'lib/ccios/pbxproj_parser.rb', line 54

def core_target
  target_for(core_project, @config.core.target)
end

#data_projectObject



21
22
23
# File 'lib/ccios/pbxproj_parser.rb', line 21

def data_project
  project_for(@config.data.project)
end

#data_targetObject



58
59
60
# File 'lib/ccios/pbxproj_parser.rb', line 58

def data_target
  target_for(data_project, @config.data.target)
end

#interactor_groupObject



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_groupObject



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_groupObject



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_groupObject



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

#saveObject



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