Sha256: 83b1734b298fec7f77ded8e786b3d0d0ef7e1fc014291b013af88f357d243f82

Contents?: true

Size: 608 Bytes

Versions: 4

Compression:

Stored size: 608 Bytes

Contents

module RocketFuel
  module Fix
    class CommandLineToolFix < AbstractFix
      fix_name :command_line_tools
      register!

      include Thor::Base

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

      def title
        'Command Line Tools must be installed for you to install ruby!'
      end

      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
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rocket_fuel-0.2.0 lib/rocket_fuel/fix/command_line_tool_fix.rb
rocket_fuel-0.1.0 lib/rocket_fuel/fix/command_line_tool_fix.rb
rocket_fuel-0.0.8 lib/rocket_fuel/fix/command_line_tool_fix.rb
rocket_fuel-0.0.7 lib/rocket_fuel/fix/command_line_tool_fix.rb