Sha256: 74ce9f6d71b437a2ab174dc041c3f23334a1e758c55d878668d9c41128b0188d

Contents?: true

Size: 663 Bytes

Versions: 6

Compression:

Stored size: 663 Bytes

Contents

require 'rocket_fuel/fix/abstract_fix'

module RocketFuel
  module Fix
    class CurlFix < AbstractFix
      fix_name :curl
      register!

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

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

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rocket_fuel-0.2.0 lib/rocket_fuel/fix/curl_fix.rb
rocket_fuel-0.1.0 lib/rocket_fuel/fix/curl_fix.rb
rocket_fuel-0.0.8 lib/rocket_fuel/fix/curl_fix.rb
rocket_fuel-0.0.7 lib/rocket_fuel/fix/curl_fix.rb
rocket_fuel-0.0.6 lib/rocket_fuel/fix/curl_fix.rb
rocket_fuel-0.0.5 lib/rocket_fuel/fix/curl_fix.rb