The installer representation to pass to the hooks.
Object
sandbox_root
project
pods
libraries
specs_by_lib
pods_by_lib
target_installers
specs_by_target
local_pods_by_target
sandbox
config
installer
initialize
sandbox_root #=> Pathname
Pathname
The root of the sandbox.
32 def sandbox_root
33 installer.sandbox.root
34 end
project #=> Pod::Project
Pod::Project
The Pods/Pods.xcodeproj
project.
40 def project
41 installer.pods_project
42 end
pods #=> Array<PodRepresentation>
Array
The representation of the Pods.
46 def pods
47 installer.pod_reps
48 end
libraries #=> Array<LibraryRepresentation>
Array
The representation of the libraries.
Pod::Hooks::InstallerRepresentation#target_installers
53 def libraries
54 installer.library_reps
55 end
specs_by_lib #=> Hash{LibraryRepresentation => Array<Specification>}
Hash{LibraryRepresentation => Array
The specifications grouped by target definition.
Pod::Hooks::InstallerRepresentation#specs_by_target
60 def specs_by_lib
61 result = {}
62 installer.aggregate_targets.each do |aggregate_target|
63 result[installer.library_rep(aggregate_target)] = aggregate_target.specs
64 end
65 result
66 end
pods_by_lib #=> Hash{LibraryRepresentation => Array<PodRepresentation>}
Hash{LibraryRepresentation => Array
The local pod instances grouped by target.
Pod::Hooks::InstallerRepresentation#local_pods_by_target
71 def pods_by_lib
72 result = {}
73 installer.aggregate_targets.map(&:pod_targets).flatten.each do |lib|
74 pod_names = [lib.root_spec.name]
75 pod_reps = pods.select { |rep| pod_names.include?(rep.name) }
76 result[lib.target_definition] = pod_reps
77 end
78 result
79 end
target_installers #=> Array<LibraryRepresentation>
Array
The representation of the libraries.
88 def libraries
89 installer.library_reps
90 end
specs_by_target #=> Hash{LibraryRepresentation => Array<Specification>}
Hash{LibraryRepresentation => Array
The specifications grouped by target definition.
89 def specs_by_lib
90 result = {}
91 installer.aggregate_targets.each do |aggregate_target|
92 result[installer.library_rep(aggregate_target)] = aggregate_target.specs
93 end
94 result
95 end
local_pods_by_target #=> Hash{LibraryRepresentation => Array<PodRepresentation>}
Hash{LibraryRepresentation => Array
The local pod instances grouped by target.
90 def pods_by_lib
91 result = {}
92 installer.aggregate_targets.map(&:pod_targets).flatten.each do |lib|
93 pod_names = [lib.root_spec.name]
94 pod_reps = pods.select { |rep| pod_names.include?(rep.name) }
95 result[lib.target_definition] = pod_reps
96 end
97 result
98 end
sandbox #=> Sandbox
Sandbox the sandbox where the support files should be generated.
104 def sandbox
105 installer.sandbox
106 end
config #=> Config
Config
The config singleton used for the installation.
110 def config
111 Config.instance
112 end
installer #=> Installer
Installer
The installer described by this instance.
initialize(installer) #=> InstallerRepresentation
Installer
installer
@see installer
InstallerRepresentation
A new instance of InstallerRepresentation
124 def initialize(installer)
125 @installer = installer
126 end