Class: Pod::Installer::TargetInstaller

Inherits:
Object
  • Object
show all
Defined in:
lib/cocoapods/installer/target_installer.rb

Overview

Controller class responsible of creating and configuring the static library target in Pods project. It also creates the support file needed by the target.

Direct Known Subclasses

AggregateTargetInstaller, PodTargetInstaller

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(sandbox, target) ⇒ TargetInstaller

Returns a new instance of TargetInstaller.

Parameters:

  • project (Project)

    @see project

  • target (Target)

    @see target



20
21
22
23
# File 'lib/cocoapods/installer/target_installer.rb', line 20

def initialize(sandbox, target)
  @sandbox = sandbox
  @target = target
end

Instance Attribute Details

#sandboxSandbox (readonly)

Returns sandbox the sandbox where the support files should be generated.

Returns:

  • (Sandbox)

    sandbox the sandbox where the support files should be generated.



11
12
13
# File 'lib/cocoapods/installer/target_installer.rb', line 11

def sandbox
  @sandbox
end

#targetTarget (readonly)

Returns The library whose target needs to be generated.

Returns:

  • (Target)

    The library whose target needs to be generated.



15
16
17
# File 'lib/cocoapods/installer/target_installer.rb', line 15

def target
  @target
end