Commit b2a49389 authored by Samuel E. Giddins's avatar Samuel E. Giddins

[PodTarget][Migrator] Store private headers in Pod/Headers/Private instead of Build/

Just in case SCM decides to ignore build directories
parent 38ce1e77
...@@ -13,6 +13,7 @@ module Pod ...@@ -13,6 +13,7 @@ module Pod
def migrate(sandbox) def migrate(sandbox)
if sandbox.manifest if sandbox.manifest
migrate_to_0_34(sandbox) if installation_minor?('0.34', sandbox) migrate_to_0_34(sandbox) if installation_minor?('0.34', sandbox)
migrate_to_0_36(sandbox) if installation_minor?('0.36', sandbox)
end end
end end
...@@ -46,6 +47,14 @@ module Pod ...@@ -46,6 +47,14 @@ module Pod
delete(Pathname(File.join(ENV['HOME'], 'Library/Caches/CocoaPods/Git'))) delete(Pathname(File.join(ENV['HOME'], 'Library/Caches/CocoaPods/Git')))
end end
# Migrates from CocoaPods versions prior to 0.36.
#
def migrate_to_0_36(sandbox)
UI.message('Migrating to CocoaPods 0.36') do
move(sandbox.root + 'Headers/Build', sandbox.root + 'Headers/Private')
end
end
# @!group Private helpers # @!group Private helpers
def installation_minor?(target_version, sandbox) def installation_minor?(target_version, sandbox)
......
...@@ -19,7 +19,7 @@ module Pod ...@@ -19,7 +19,7 @@ module Pod
@specs = specs @specs = specs
@target_definition = target_definition @target_definition = target_definition
@sandbox = sandbox @sandbox = sandbox
@build_headers = Sandbox::HeadersStore.new(sandbox, 'Build') @build_headers = Sandbox::HeadersStore.new(sandbox, 'Private')
@file_accessors = [] @file_accessors = []
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