title: CocoaPods: Updated pre_install syntax?
body: <p>I'm just now updating to CocoaPods 0.38.2 (or trying to) and have run into an issue with my pre_install hook that removes unwanted localizations. I've read through the <a href="http://blog.cocoapods.org/CocoaPods-0.38/" rel="nofollow">CocoaPods update documentation</a> but after converting my <code>pods</code> to <code>pods_targets</code> I'm still getting an error: 
  <code>undefined method 'root' for &lt;Pod::PodTarget name=Alamofire &gt;:Pod::PodTarget</code>
  I don't see a replacement for root in the new <code>PodTarget</code> definition. </p>
  
  <p>Here's the original hook:</p>
  
  <pre><code>pre_install do |installer|
  
    supported_locales = ['base', 'en']
  
    installer.pod_targets.each do |pod|
      # remove unused localizations
      %x[ find "#{pod.root}" -name '*.lproj' ].split.each do |bundle|
        if (!supported_locales.include?(File.basename(bundle, ".lproj").downcase))
          # puts "Removing #{bundle}"
          FileUtils.rm_rf(bundle)
        end
      end
    end
  end
  </code></pre>
  
  <p>Ideas?</p>