Class: RocketFuel::Fix::CurlFix

Inherits:
AbstractFix show all
Defined in:
lib/rocket_fuel/fix/curl_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
22
# File 'lib/rocket_fuel/fix/curl_fix.rb', line 17

def message
  'Rocket Fuel needs to download a series of tools, and curl is used ' +
  'to manage those downloads. You must install the tool for rocket fuel ' +
  'to work. For Linux installations that use apt for package management, ' +
  'you can invoke `sudo apt-get install curl` to install.'
end

#runObject



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

def run
  system('sudo apt-get install curl -y')
end

#titleObject



13
14
15
# File 'lib/rocket_fuel/fix/curl_fix.rb', line 13

def title
  'curl must be installed for rocket fuel to work propertly!'
end