Class: RocketFuel::Fix::BrewFix

Inherits:
AbstractFix show all
Includes:
Thor::Base
Defined in:
lib/rocket_fuel/fix/brew_fix.rb

Constant Summary collapse

FIX_CMD =
'sudo mkdir -p /usr/local && sudo chown -R $(whoami):admin /usr/local'

Instance Method Summary collapse

Methods inherited from AbstractFix

#check, fix_name, fix_name_value, register!

Instance Method Details

#messageObject



18
19
20
21
22
# File 'lib/rocket_fuel/fix/brew_fix.rb', line 18

def message
  'An important package manager for OS X, named homebrew, requires ' +
  'a writeable directory that is protected by the operating system ' +
  "running `#{FIX_CMD}` will get the job done."
end

#runObject



10
11
12
# File 'lib/rocket_fuel/fix/brew_fix.rb', line 10

def run
  system(FIX_CMD)
end

#titleObject



14
15
16
# File 'lib/rocket_fuel/fix/brew_fix.rb', line 14

def title
  'Homebrew requires a writable /usr/local path.'
end