lib/cocoapods/installer/migrator.rb
# Migrates from CocoaPods versions previous to 0.34.
#
# @param [Sandbox] sandbox
#
Migrates from CocoaPods versions previous to 0.34.
Migrates from CocoaPods versions previous to 0 . 34 .
def migrate_to_0_34(sandbox)
          UI.message('Migrating to CocoaPods 0.34') do
            delete(sandbox.root + 'Headers')
            make_path(sandbox.headers_root)
            sandbox.root.children.each do |child|
              relative = child.relative_path_from(sandbox.root)
              case relative.to_s
              when 'Manifest.lock', 'Pods.xcodeproj', 'Headers',
                'Target Support Files', 'Local Podspecs'
                next
              when 'BuildHeaders', 'PublicHeaders'
                delete(child)
              else
                if child.directory? && child.extname != '.xcodeproj'
                  next
                else
                  delete(child)
                end
              end
            end
          end
          delete(Pathname(File.join(ENV['HOME'], 'Library/Caches/CocoaPods/Git')))
        end
def migrate_to_0_34 ( sandbox ) UI . message ( 'Migrating to CocoaPods 0.34' ) do delete ( sandbox . root + 'Headers' ) make_path ( sandbox . headers_root ) sandbox . root . children . each do | child | relative = child . relative_path_from ( sandbox . root ) case relative . to_s when 'Manifest.lock' , 'Pods.xcodeproj' , 'Headers' , 'Target Support Files' , 'Local Podspecs' next when 'BuildHeaders' , 'PublicHeaders' delete ( child ) else if child . directory? && child . extname != '.xcodeproj' next else delete ( child ) end end end end delete ( Pathname ( File . join ( ENV [ 'HOME' ] , 'Library/Caches/CocoaPods/Git' ) ) ) end
Migrates from CocoaPods versions previous to 0.34.
Migrates from CocoaPods versions previous to 0 . 34 .
sandbox
None