Class: Pod::Installer::PostInstallHooksContext::UmbrellaTargetDescription
- Inherits:
-
Object
- Object
- Pod::Installer::PostInstallHooksContext::UmbrellaTargetDescription
- Defined in:
- lib/cocoapods/installer/post_install_hooks_context.rb
Overview
Pure data class which describes and umbrella target.
Instance Attribute Summary collapse
-
#cocoapods_target_label ⇒ String
readonly
The label for the target.
-
#platform_deployment_target ⇒ String
readonly
The deployment target.
-
#platform_name ⇒ Symbol
readonly
The platform (either ‘:ios`, `:watchos`, `:tvos`, or `:osx`).
-
#specs ⇒ Array<Specification>
readonly
The list of the specifications of the target.
-
#user_project ⇒ Xcodeproj::Project
readonly
The user project into which this target is integrated.
-
#user_targets ⇒ Array<PBXNativeTarget>
readonly
The list of user targets integrated by this umbrella target.
Instance Method Summary collapse
-
#initialize(user_project, user_targets, specs, platform_name, platform_deployment_target, cocoapods_target_label) ⇒ UmbrellaTargetDescription
constructor
Initialize a new instance.
-
#user_project_path ⇒ String
The path of the user project integrated by this target.
-
#user_target_uuids ⇒ Array<String>
The list of the UUIDs of the user targets integrated by this umbrella target.
Constructor Details
#initialize(user_project, user_targets, specs, platform_name, platform_deployment_target, cocoapods_target_label) ⇒ UmbrellaTargetDescription
Initialize a new instance
103 104 105 106 107 108 109 110 |
# File 'lib/cocoapods/installer/post_install_hooks_context.rb', line 103 def initialize(user_project, user_targets, specs, platform_name, platform_deployment_target, cocoapods_target_label) @user_project = user_project @user_targets = user_targets @specs = specs @platform_name = platform_name @platform_deployment_target = platform_deployment_target @cocoapods_target_label = cocoapods_target_label end |
Instance Attribute Details
#cocoapods_target_label ⇒ String (readonly)
Returns The label for the target.
92 93 94 |
# File 'lib/cocoapods/installer/post_install_hooks_context.rb', line 92 def cocoapods_target_label @cocoapods_target_label end |
#platform_deployment_target ⇒ String (readonly)
Returns The deployment target.
88 89 90 |
# File 'lib/cocoapods/installer/post_install_hooks_context.rb', line 88 def platform_deployment_target @platform_deployment_target end |
#platform_name ⇒ Symbol (readonly)
Returns The platform (either ‘:ios`, `:watchos`, `:tvos`, or `:osx`).
84 85 86 |
# File 'lib/cocoapods/installer/post_install_hooks_context.rb', line 84 def platform_name @platform_name end |
#specs ⇒ Array<Specification> (readonly)
Returns The list of the specifications of the target.
80 81 82 |
# File 'lib/cocoapods/installer/post_install_hooks_context.rb', line 80 def specs @specs end |
#user_project ⇒ Xcodeproj::Project (readonly)
Returns The user project into which this target is integrated.
70 71 72 |
# File 'lib/cocoapods/installer/post_install_hooks_context.rb', line 70 def user_project @user_project end |
#user_targets ⇒ Array<PBXNativeTarget> (readonly)
Returns The list of user targets integrated by this umbrella target.
75 76 77 |
# File 'lib/cocoapods/installer/post_install_hooks_context.rb', line 75 def user_targets @user_targets end |
Instance Method Details
#user_project_path ⇒ String
Returns The path of the user project integrated by this target.
115 116 117 |
# File 'lib/cocoapods/installer/post_install_hooks_context.rb', line 115 def user_project_path user_project.path if user_project end |
#user_target_uuids ⇒ Array<String>
Returns The list of the UUIDs of the user targets integrated by this umbrella target. They can be used to find the targets opening the project They can be used to find the targets opening the project with Xcodeproj.
126 127 128 |
# File 'lib/cocoapods/installer/post_install_hooks_context.rb', line 126 def user_target_uuids user_targets.map(&:uuid) end |