Class: Pod::Installer::BaseInstallHooksContext::UmbrellaTargetDescription

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

Overview

Pure data class which describes an umbrella target.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(user_project, user_targets, specs, platform_name, platform_deployment_target, cocoapods_target_label) ⇒ UmbrellaTargetDescription

Initialize a new instance



121
122
123
124
125
126
127
128
# File 'lib/cocoapods/installer/base_install_hooks_context.rb', line 121

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_labelString (readonly)



110
111
112
# File 'lib/cocoapods/installer/base_install_hooks_context.rb', line 110

def cocoapods_target_label
  @cocoapods_target_label
end

#platform_deployment_targetString (readonly)



106
107
108
# File 'lib/cocoapods/installer/base_install_hooks_context.rb', line 106

def platform_deployment_target
  @platform_deployment_target
end

#platform_nameSymbol (readonly)



102
103
104
# File 'lib/cocoapods/installer/base_install_hooks_context.rb', line 102

def platform_name
  @platform_name
end

#specsArray<Specification> (readonly)



98
99
100
# File 'lib/cocoapods/installer/base_install_hooks_context.rb', line 98

def specs
  @specs
end

#user_projectXcodeproj::Project (readonly)



88
89
90
# File 'lib/cocoapods/installer/base_install_hooks_context.rb', line 88

def user_project
  @user_project
end

#user_targetsArray<PBXNativeTarget> (readonly)



93
94
95
# File 'lib/cocoapods/installer/base_install_hooks_context.rb', line 93

def user_targets
  @user_targets
end

Instance Method Details

#user_project_pathString



133
134
135
# File 'lib/cocoapods/installer/base_install_hooks_context.rb', line 133

def user_project_path
  user_project.path if user_project
end

#user_target_uuidsArray<String>



144
145
146
# File 'lib/cocoapods/installer/base_install_hooks_context.rb', line 144

def user_target_uuids
  user_targets.map(&:uuid)
end