lib/xcode/install/install.rb in xcode-install-0.2.0 vs lib/xcode/install/install.rb in xcode-install-0.3.0

- old
+ new

@@ -27,13 +27,10 @@ raise Informative, "Version #{@version} doesn't exist." unless @installer.exist?(@version) end def run return if @version.nil? - dmgPath = @installer.download(@version) - raise Informative, "Failed to download Xcode #{@version}." if dmgPath.nil? - - @installer.install_dmg(dmgPath, "-#{@version.split(' ')[0]}", @should_switch, @should_clean) + @installer.install_version(@version, @should_switch, @should_clean) end end end end