Class: RocketFuel::Fix::CommandLineToolFix
- Inherits:
-
AbstractFix
show all
- Includes:
- Thor::Base
- Defined in:
- lib/rocket_fuel/fix/command_line_tool_fix.rb
Instance Method Summary
collapse
Methods inherited from AbstractFix
#check, fix_name, fix_name_value, register!
Instance Method Details
#message ⇒ Object
17
18
19
20
21
|
# File 'lib/rocket_fuel/fix/command_line_tool_fix.rb', line 17
def message
'Installing Ruby requires a C compiler. For the Mac, Apple provides ' +
'a package known as "Command Line Tools" which includes a C compiler. ' +
'Most of the time running `xcode-select --install` will get the job done.'
end
|
#run ⇒ Object
9
10
11
|
# File 'lib/rocket_fuel/fix/command_line_tool_fix.rb', line 9
def run
system('xcode-select --install')
end
|
#title ⇒ Object
13
14
15
|
# File 'lib/rocket_fuel/fix/command_line_tool_fix.rb', line 13
def title
'Command Line Tools must be installed for you to install ruby!'
end
|