lib/xcode/install/install.rb in xcode-install-2.2.0 vs lib/xcode/install/install.rb in xcode-install-2.2.1
- old
+ new
@@ -14,11 +14,12 @@
[['--url', 'Custom Xcode DMG file path or HTTP URL.'],
['--force', 'Install even if the same version is already installed.'],
['--no-switch', 'Don’t switch to this version after installation'],
['--no-install', 'Only download DMG, but do not install it.'],
['--no-progress', 'Don’t show download progress.'],
- ['--no-clean', 'Don’t delete DMG after installation.']].concat(super)
+ ['--no-clean', 'Don’t delete DMG after installation.'],
+ ['--no-show-release-notes', 'Don’t open release notes in browser after installation.']].concat(super)
end
def initialize(argv)
@installer = Installer.new
@version = argv.shift_argument
@@ -26,10 +27,11 @@
@force = argv.flag?('force', false)
@should_clean = argv.flag?('clean', true)
@should_install = argv.flag?('install', true)
@should_switch = argv.flag?('switch', true)
@progress = argv.flag?('progress', true)
+ @show_release_notes = argv.flag?('show-release-notes', true)
super
end
def validate!
super
@@ -40,10 +42,10 @@
fail Informative, "Invalid URL: `#{@url}`" unless !@url || @url =~ /\A#{URI.regexp}\z/
end
def run
@installer.install_version(@version, @should_switch, @should_clean, @should_install,
- @progress, @url)
+ @progress, @url, @show_release_notes)
end
end
end
end