Class: Pod::Installer::Xcode::PodsProjectGenerator::FileReferencesInstaller
- Inherits:
-
Object
- Object
- Pod::Installer::Xcode::PodsProjectGenerator::FileReferencesInstaller
- Defined in:
- lib/cocoapods/installer/xcode/pods_project_generator/file_references_installer.rb
Overview
Controller class responsible of installing the file references of the specifications in the Pods project.
Instance Attribute Summary collapse
-
#pod_targets ⇒ Array<PodTarget>
readonly
The pod targets of the installation.
-
#pods_project ⇒ Project
readonly
The Pods project.
-
#sandbox ⇒ Sandbox
readonly
The sandbox of the installation.
Instance Method Summary collapse
-
#initialize(sandbox, pod_targets, pods_project) ⇒ FileReferencesInstaller
constructor
Initialize a new instance.
-
#install! ⇒ void
Installs the file references.
Constructor Details
#initialize(sandbox, pod_targets, pods_project) ⇒ FileReferencesInstaller
Initialize a new instance
27 28 29 30 31 |
# File 'lib/cocoapods/installer/xcode/pods_project_generator/file_references_installer.rb', line 27 def initialize(sandbox, pod_targets, pods_project) @sandbox = sandbox @pod_targets = pod_targets @pods_project = pods_project end |
Instance Attribute Details
#pod_targets ⇒ Array<PodTarget> (readonly)
Returns The pod targets of the installation.
15 16 17 |
# File 'lib/cocoapods/installer/xcode/pods_project_generator/file_references_installer.rb', line 15 def pod_targets @pod_targets end |
#pods_project ⇒ Project (readonly)
Returns The Pods project.
19 20 21 |
# File 'lib/cocoapods/installer/xcode/pods_project_generator/file_references_installer.rb', line 19 def pods_project @pods_project end |
#sandbox ⇒ Sandbox (readonly)
Returns The sandbox of the installation.
11 12 13 |
# File 'lib/cocoapods/installer/xcode/pods_project_generator/file_references_installer.rb', line 11 def sandbox @sandbox end |
Instance Method Details
#install! ⇒ void
This method returns an undefined value.
Installs the file references.
37 38 39 40 41 42 43 44 45 |
# File 'lib/cocoapods/installer/xcode/pods_project_generator/file_references_installer.rb', line 37 def install! refresh_file_accessors add_source_files_references add_frameworks_bundles add_vendored_libraries add_resources add_developer_files unless sandbox.development_pods.empty? link_headers end |