Skip to content

Instantly share code, notes, and snippets.

@timuruski
Created May 7, 2015 20:46
Show Gist options
  • Save timuruski/d5238bccdc2bc4d58efb to your computer and use it in GitHub Desktop.
Save timuruski/d5238bccdc2bc4d58efb to your computer and use it in GitHub Desktop.
#! /usr/bin/env ruby
# Not guaranteed to work.
require 'fileutils'
require 'pathname'
root = Pathname.new %x(git rev-parse --show-toplevel)
podfile_path = root + 'Podfile.lock'
pods_path = root + 'Pods'
podfile_path.rm if podfile_path.exist?
pods_path.rmdir rescue nil
system 'pod install'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment