Class: XcodeInstall::Command::Installed
- Inherits:
-
XcodeInstall::Command
- Object
- CLAide::Command
- XcodeInstall::Command
- XcodeInstall::Command::Installed
- Defined in:
- lib/xcode/install/installed.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(argv) ⇒ Installed
constructor
A new instance of Installed.
- #run ⇒ Object
Methods inherited from XcodeInstall::Command
Constructor Details
#initialize(argv) ⇒ Installed
Returns a new instance of Installed.
11 12 13 14 |
# File 'lib/xcode/install/installed.rb', line 11 def initialize(argv) @uuid = argv.flag?('uuid', false) super end |
Class Method Details
.options ⇒ Object
7 8 9 |
# File 'lib/xcode/install/installed.rb', line 7 def self. [['--uuid', 'Show DVTPlugInCompatibilityUUIDs in the list.']].concat(super) end |
Instance Method Details
#run ⇒ Object
16 17 18 19 20 21 |
# File 'lib/xcode/install/installed.rb', line 16 def run installer = XcodeInstall::Installer.new installer.installed_versions.each do |xcode| puts "#{xcode.version}\t(#{xcode.path})\t#{@uuid ? xcode.uuid : ''}" end end |