Created
October 14, 2014 15:14
-
-
Save jonstorer/95674f6e16c2cb9a285d to your computer and use it in GitHub Desktop.
Install & Use Xcode 5.1
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 characters
namespace :xcode do | |
desc 'install xcode' | |
task :install => [:download, :mount, :link] | |
task :download do | |
# Whatever version you'd like | |
execute 'curl -o ~/Downloads/Xcode.dmg https://s3.amazonaws.com/[insert-your-bucket-here]/xcode_5.1.1.dmg' | |
end | |
task :mount do | |
execute 'hdiutil attach ~/Downloads/Xcode.dmg' | |
end | |
task :link do | |
execute 'sudo xcode-select -s /Volumes/Xcode/Xcode.app' | |
puts `xcode-select -p` | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment