Sha256: 3cccb040e8d48db09e84b33a50bcba5370696f514c5036f9bd5dbe1119438315

Contents?: true

Size: 729 Bytes

Versions: 4

Compression:

Stored size: 729 Bytes

Contents

module Frameit
  class DependencyChecker
    def self.check_dependencies
      return if Helper.test?

      self.check_image_magick
    end

    def self.check_image_magick
      unless `which convert`.include? "convert"
        Helper.log.fatal '#############################################################'
        Helper.log.fatal "# You have to install the ImageMagick to use FrameIt"
        Helper.log.fatal "# Install it using 'brew update && brew install imagemagick'"
        Helper.log.fatal "# If you don't have homebrew: http://brew.sh"
        Helper.log.fatal '#############################################################'
        raise "Install ImageMagick and start frameit again!"
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
frameit-2.4.1 lib/frameit/dependency_checker.rb
frameit-2.4.0 lib/frameit/dependency_checker.rb
frameit-2.3.0 lib/frameit/dependency_checker.rb
frameit-2.2.2 lib/frameit/dependency_checker.rb