Sha256: d9c45bb358b2d11d1b25eb8f0bdeae1ce2d9e1352806da6b0bac6c4518f73a80
Contents?: true
Size: 744 Bytes
Versions: 2
Compression:
Stored size: 744 Bytes
Contents
module XcodeInstall class Command class Install < Command self.command = 'install' self.summary = 'Install a specific version of Xcode.' self.arguments = [ CLAide::Argument.new('VERSION', :true), ] def initialize(argv) @installer = Installer.new @version = argv.shift_argument end def validate! raise Informative, "Version #{@version} already installed." if @installer.installed?(@version) raise Informative, "Version #{@version} doesn't exist." unless @installer.exist?(@version) end def run dmgPath = @installer.download(@version) raise Informative, "Failed to download Xcode #{@version}." if dmgPath.nil? @installer.install_dmg(dmgPath, "-#{@version}") end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
xcode-install-0.0.3 | lib/xcode/install/install.rb |
xcode-install-0.0.2 | lib/xcode/install/install.rb |