Class: Pod::Installer::Xcode::PodsProjectGenerator::PodsProjectGeneratorResult
- Inherits:
-
Object
- Object
- Pod::Installer::Xcode::PodsProjectGenerator::PodsProjectGeneratorResult
- Defined in:
- lib/cocoapods/installer/xcode/pods_project_generator_result.rb
Overview
A simple container produced after a pod project generation is completed.
Instance Attribute Summary collapse
-
#project ⇒ Project
readonly
Project.
-
#projects_by_pod_targets ⇒ Hash{Project => Array<PodTargets>}
readonly
Project by pod targets map.
-
#target_installation_results ⇒ InstallationResults
readonly
Target installation results.
Instance Method Summary collapse
-
#initialize(project, projects_by_pod_targets, target_installation_results) ⇒ PodsProjectGeneratorResult
constructor
Initialize a new instance.
-
#native_target_for_spec(spec) ⇒ Xcodeproj::PBXNativeTarget
The native target for the spec.
Constructor Details
#initialize(project, projects_by_pod_targets, target_installation_results) ⇒ PodsProjectGeneratorResult
Initialize a new instance
26 27 28 29 30 |
# File 'lib/cocoapods/installer/xcode/pods_project_generator_result.rb', line 26 def initialize(project, projects_by_pod_targets, target_installation_results) @project = project @projects_by_pod_targets = projects_by_pod_targets @target_installation_results = target_installation_results end |
Instance Attribute Details
#project ⇒ Project (readonly)
Returns project.
10 11 12 |
# File 'lib/cocoapods/installer/xcode/pods_project_generator_result.rb', line 10 def project @project end |
#projects_by_pod_targets ⇒ Hash{Project => Array<PodTargets>} (readonly)
Returns Project by pod targets map.
14 15 16 |
# File 'lib/cocoapods/installer/xcode/pods_project_generator_result.rb', line 14 def projects_by_pod_targets @projects_by_pod_targets end |
#target_installation_results ⇒ InstallationResults (readonly)
Returns target installation results.
18 19 20 |
# File 'lib/cocoapods/installer/xcode/pods_project_generator_result.rb', line 18 def target_installation_results @target_installation_results end |
Instance Method Details
#native_target_for_spec(spec) ⇒ Xcodeproj::PBXNativeTarget
Returns the native target for the spec.
37 38 39 |
# File 'lib/cocoapods/installer/xcode/pods_project_generator_result.rb', line 37 def native_target_for_spec(spec) installation_results_by_spec[spec.root].native_target_for_spec(spec) end |