Skip to content

Instantly share code, notes, and snippets.

@jonstorer
Created October 14, 2014 15:14
Show Gist options
  • Save jonstorer/95674f6e16c2cb9a285d to your computer and use it in GitHub Desktop.
Save jonstorer/95674f6e16c2cb9a285d to your computer and use it in GitHub Desktop.
Install & Use Xcode 5.1
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