-
-
Save brettohland/6d61fbe55278375fc959 to your computer and use it in GitHub Desktop.
Revisions
-
brettohland revised this gist
May 8, 2015 . 1 changed file with 13 additions and 9 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,15 +1,19 @@ #! /usr/bin/env ruby require 'fileutils' require 'pathname' #Remove the \n character at the end of the path returned root = %x(git rev-parse --show-toplevel).chomp root_path = Pathname.new(root) podfile = root + '/Podfile.lock' pods = root + '/Pods' podfile_path = Pathname.new(podfile) pods_path = Pathname.new(pods) podfile_path.delete() if podfile_path.exist? pods_path.rmtree if pods_path.exist? system 'pod install' unless podfile_path.exist? and pods_path.exist? -
timuruski created this gist
May 7, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ #! /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'