Commit 1845945e authored by Will Pragnell's avatar Will Pragnell

Added acknowledgements_path to TargetDefinition class

parent 0bd7b51c
...@@ -87,8 +87,7 @@ module Pod ...@@ -87,8 +87,7 @@ module Pod
target_installers.each do |target_installer| target_installers.each do |target_installer|
pods_for_target = activated_pods_by_target[target_installer.target_definition] pods_for_target = activated_pods_by_target[target_installer.target_definition]
target_installer.install!(pods_for_target, @sandbox) target_installer.install!(pods_for_target, @sandbox)
acknowledgements_path = config.project_pods_root + acknowledgements_path = target_installer.target_definition.acknowledgements_path
"#{target_installer.target_definition.label}-Acknowledgements"
Generator::Acknowledgements.new(target_installer.target_definition, Generator::Acknowledgements.new(target_installer.target_definition,
pods_for_target).save_as(acknowledgements_path) pods_for_target).save_as(acknowledgements_path)
end end
......
...@@ -61,6 +61,10 @@ module Pod ...@@ -61,6 +61,10 @@ module Pod
end end
end end
def acknowledgements_path
config.project_pods_root + "#{label}-Acknowledgements"
end
# Returns a path, which is relative to the project_root, relative to the # Returns a path, which is relative to the project_root, relative to the
# `$(SRCROOT)` of the user's project. # `$(SRCROOT)` of the user's project.
def relative_to_srcroot(path) def relative_to_srcroot(path)
......
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