Class: Pod::Installer::Xcode::PodsProjectGenerator::TargetInstaller

Inherits:
Object
  • Object
show all
Includes:
TargetInstallerHelper
Defined in:
lib/cocoapods/installer/xcode/pods_project_generator/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

Methods included from TargetInstallerHelper

create_info_plist_file_with_sandbox, create_prefix_header, update_changed_file

Constructor Details

#initialize(sandbox, project, target) ⇒ TargetInstaller

Initialize a new instance

Parameters:



35
36
37
38
39
# File 'lib/cocoapods/installer/xcode/pods_project_generator/target_installer.rb', line 35

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

Instance Attribute Details

#projectPod::Project (readonly)

Returns The project to install the target into.

Returns:

  • (Pod::Project)

    The project to install the target into.



22
23
24
# File 'lib/cocoapods/installer/xcode/pods_project_generator/target_installer.rb', line 22

def project
  @project
end

#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.



17
18
19
# File 'lib/cocoapods/installer/xcode/pods_project_generator/target_installer.rb', line 17

def sandbox
  @sandbox
end

#targetTarget (readonly)

Returns target The library whose target needs to be generated.

Returns:

  • (Target)

    target The library whose target needs to be generated.



27
28
29
# File 'lib/cocoapods/installer/xcode/pods_project_generator/target_installer.rb', line 27

def target
  @target
end