class Pod::Hooks::InstallerRepresentation


The installer representation to pass to the hooks.

def config

Returns:
  • (Config) - The config singleton used for the installation.
def config
  Config.instance
end

def initialize(installer)

Parameters:
  • installer (Installer) -- @see installer
def initialize(installer)
  @installer = installer
end

def libraries

Returns:
  • (Array) - The representation of the
def libraries
  installer.library_reps
end

def pods

Returns:
  • (Array) - The representation of the Pods.
def pods
  installer.pod_reps
end

def pods_by_lib

Returns:
  • (Hash{LibraryRepresentation => Array}) - The
def pods_by_lib
  result = {}
  installer.aggregate_targets.map(&:pod_targets).flatten.each do |lib|
    pod_names = [lib.root_spec.name]
    pod_reps = pods.select { |rep| pod_names.include?(rep.name) }
    result[lib.target_definition] = pod_reps
  end
  result
end

def project

Other tags:
    Note: - This value is not yet set in the pre install callbacks.

Returns:
  • (Pod::Project) - the `Pods/Pods.xcodeproj` project.
def project
  installer.pods_project
end

def sandbox

Returns:
  • (Sandbox) - sandbox the sandbox where the support files should
def sandbox
  installer.sandbox
end

def sandbox_root

Returns:
  • (Pathname) - The root of the sandbox.
def sandbox_root
  installer.sandbox.root
end

def specs_by_lib

Returns:
  • (Hash{LibraryRepresentation => Array}) - The
def specs_by_lib
  result = {}
  installer.aggregate_targets.each do |aggregate_target|
    result[installer.library_rep(aggregate_target)] = aggregate_target.specs
  end
  result
end