class Pod::Installer
Public Instance Methods
apply_patches()
click to toggle source
# File lib/pod/hook.rb, line 35 def apply_patches Pod::UI.puts 'Applying patches if necessary' patches_dir = Pathname.new(Dir.pwd) + 'patches' if patches_dir.directory? patches = patches_dir.each_child.select { |c| c.to_s.end_with?('.diff') } patches.each { |p| apply_patch(p) } end end
integrate()
click to toggle source
# File lib/pod/hook.rb, line 28 def integrate # apply our patches apply_patches # run the original implementation integrate_old end
Also aliased as: integrate_old
integrate_old()
Because our patches may also delete files, we need to apply them before the pod project is generated The project is generated in the `integrate` method, so we override it We first run our patch action and then the original implementation of the method Reference: github.com/CocoaPods/CocoaPods/blob/760828a07f8fcfbff03bce13f56a1789b6f5a95d/lib/cocoapods/installer.rb#L178
Alias for: integrate