Class: MacSetup::CommandLineToolsInstaller
- Inherits:
-
Object
- Object
- MacSetup::CommandLineToolsInstaller
- Defined in:
- lib/mac_setup/command_line_tools_installer.rb
Constant Summary collapse
- BIN_PATH =
"/Library/Developer/CommandLineTools/usr/bin/clang"
Class Method Summary collapse
Class Method Details
.run ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/mac_setup/command_line_tools_installer.rb', line 7 def self.run if File.exist?(BIN_PATH) puts "Command Line Tools already installed. Skipping..." else Shell.run("xcode-select --install") end end |