Class: RocketFuel::Fix::CommandLineToolFix

Inherits:
AbstractFix
  • Object
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

#messageObject



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

#runObject



9
10
11
# File 'lib/rocket_fuel/fix/command_line_tool_fix.rb', line 9

def run
  system('xcode-select --install')
end

#titleObject



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