Sha256: dd94b35336cb3afc75848b86e37af765473c44b2292d6d3e6f2408b0f0a30d18

Contents?: true

Size: 767 Bytes

Versions: 3

Compression:

Stored size: 767 Bytes

Contents

# coding: utf-8

module MonkeyDoctor

  def MonkeyDoctor.run_env_doctor
    doctor_list = []
    doctor_list << `hash idevice_id 2>/dev/null || { echo "Require 'libimobiledevice' but it's not installed. Please run 'brew install libimobiledevice' to install it."; exit 1; };`.strip
    doctor_list << `hash ideviceinstaller 2>/dev/null || { echo "Require 'ideviceinstaller' but it's not installed. Please run 'brew install ideviceinstaller' to install it."; exit 1; };`.strip
    doctor_list << `hash mogrify 2>/dev/null || { echo "Require 'imagemagick' but it's not installed. Please run 'brew install imagemagick' to install it."; exit 1; }; `.strip
    doctor_list.each do |item|
      if !item.empty?
        puts item
        exit(1)
      end
    end
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
smart_monkey-0.5.0 lib/smart_monkey/monkey_doctor.rb
smart_monkey-0.4.2 lib/smart_monkey/monkey_doctor.rb
smart_monkey-0.4.1 lib/smart_monkey/monkey_doctor.rb