class XcodeInstall::Command::Simulators
Public Class Methods
new(argv)
click to toggle source
Calls superclass method
# File lib/xcode/install/simulators.rb, line 16 def initialize(argv) @installed_xcodes = Installer.new.installed_versions @install = argv.option('install') @force = argv.flag?('force', false) @should_install = argv.flag?('install', true) @progress = argv.flag?('progress', true) super end
options()
click to toggle source
Calls superclass method
# File lib/xcode/install/simulators.rb, line 9 def self.options [['--install=name', 'Install simulator beginning with name, e.g. \'iOS 8.4\', \'tvOS 9.0\'.'], ['--force', 'Install even if the same version is already installed.'], ['--no-install', 'Only download DMG, but do not install it.'], ['--no-progress', 'Don’t show download progress.']].concat(super) end
Public Instance Methods
run()
click to toggle source
# File lib/xcode/install/simulators.rb, line 25 def run @install ? install : list end