Commit 0b42871d authored by Fabio Pelosin's avatar Fabio Pelosin

Rename PodTarget to AggregateTarget

parent 3d3ab979
......@@ -45,7 +45,7 @@ module Pod
autoload :Installer, 'cocoapods/installer'
autoload :SourcesManager, 'cocoapods/sources_manager'
autoload :Target, 'cocoapods/target'
autoload :PodTarget, 'cocoapods/target/pod_target'
autoload :AggregateTarget, 'cocoapods/target/aggregate_target'
autoload :SpecTarget, 'cocoapods/target/spec_target'
autoload :Project, 'cocoapods/project'
autoload :Resolver, 'cocoapods/resolver'
......
......@@ -28,12 +28,12 @@ module Pod
#
class Installer
autoload :Analyzer, 'cocoapods/installer/analyzer'
autoload :FileReferencesInstaller, 'cocoapods/installer/file_references_installer'
autoload :PodSourceInstaller, 'cocoapods/installer/pod_source_installer'
autoload :PodTargetInstaller, 'cocoapods/installer/target_installer'
autoload :SpecTargetInstaller, 'cocoapods/installer/target_installer'
autoload :UserProjectIntegrator, 'cocoapods/installer/user_project_integrator'
autoload :Analyzer, 'cocoapods/installer/analyzer'
autoload :FileReferencesInstaller, 'cocoapods/installer/file_references_installer'
autoload :PodSourceInstaller, 'cocoapods/installer/pod_source_installer'
autoload :AggregateTargetInstaller, 'cocoapods/installer/target_installer'
autoload :SpecTargetInstaller, 'cocoapods/installer/target_installer'
autoload :UserProjectIntegrator, 'cocoapods/installer/user_project_integrator'
include Config::Mixin
......@@ -136,7 +136,7 @@ module Pod
#
attr_reader :names_of_pods_to_install
# @return [Array<PodTarget>] The Podfile targets containing library
# @return [Array<AggregateTarget>] The Podfile targets containing library
# dependencies.
#
attr_reader :targets
......@@ -322,7 +322,7 @@ module Pod
targets.sort_by(&:name).each do |target|
next if target.target_definition.empty?
target_installer = PodTargetInstaller.new(sandbox, target)
target_installer = AggregateTargetInstaller.new(sandbox, target)
target_installer.install!
end
end
......
......@@ -164,7 +164,7 @@ module Pod
def generate_targets
targets = []
result.specs_by_target.each do |target_definition, specs|
target = PodTarget.new(target_definition, sandbox)
target = AggregateTarget.new(target_definition, sandbox)
targets << target
if config.integrate_targets?
......
......@@ -139,7 +139,7 @@ module Pod
#-------------------------------------------------------------------------#
class PodTargetInstaller < AbstractTargetInstaller
class AggregateTargetInstaller < AbstractTargetInstaller
# Creates the target in the Pods project and the relative support files.
#
......
module Pod
class PodTarget < Target
# The aggregate target is used to cluster the targets of the single Pods. The
# client targets will then depend on this one.
#
class AggregateTarget < Target
# @param [TargetDefinition] target_definition @see target_definition
# @param [Sandbox] sandbox @see sandbox
#
def initialize(target_definition, sandbox)
@target_definition = target_definition
......
require File.expand_path('../../../spec_helper', __FILE__)
module Pod
describe AggregateTarget do
end
end
require File.expand_path('../../spec_helper', __FILE__)
module Pod
describe Target do
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment