class RocketFuel::Precheck::CurlCheck

Public Instance Methods

check?() click to toggle source
# File lib/rocket_fuel/precheck/curl_check.rb, line 13
def check?
  RocketFuel::SystemDetails.platform_family?(:linux)
end
ok?() click to toggle source
# File lib/rocket_fuel/precheck/curl_check.rb, line 9
def ok?
  installed?
end

Protected Instance Methods

failure_message() click to toggle source
# File lib/rocket_fuel/precheck/curl_check.rb, line 23
def failure_message
  'curl NOT found.'
end
installed?() click to toggle source
# File lib/rocket_fuel/precheck/curl_check.rb, line 18
def installed?
  `curl --help`
  $?.exitstatus == 0
end
success_message() click to toggle source
# File lib/rocket_fuel/precheck/curl_check.rb, line 27
def success_message
  'curl found.'
end