Sha256: d64bac8f60d52570aa56fedfc0a7a41c62c73b9a562f4f03e83fa511c3f2f3d0

Contents?: true

Size: 509 Bytes

Versions: 6

Compression:

Stored size: 509 Bytes

Contents

require 'rocket_fuel/precheck/check'

module RocketFuel
  module Precheck
    class CurlCheck < Check
      check_name :curl
      register!

      def ok?
        installed?
      end

      def check?
        RocketFuel::SystemDetails.platform_family?(:linux)
      end

      protected
      def installed?
        `curl --help`
        $?.exitstatus == 0
      end

      def failure_message
        'curl NOT found.'
      end

      def success_message
        'curl found.'
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rocket_fuel-0.2.0 lib/rocket_fuel/precheck/curl_check.rb
rocket_fuel-0.1.0 lib/rocket_fuel/precheck/curl_check.rb
rocket_fuel-0.0.8 lib/rocket_fuel/precheck/curl_check.rb
rocket_fuel-0.0.7 lib/rocket_fuel/precheck/curl_check.rb
rocket_fuel-0.0.6 lib/rocket_fuel/precheck/curl_check.rb
rocket_fuel-0.0.5 lib/rocket_fuel/precheck/curl_check.rb