Sha256: 4b2acf39553113c2ad1ec163f2765ad2000bd70cbfc9ef726b1f02dd7e7d5681
Contents?: true
Size: 640 Bytes
Versions: 27
Compression:
Stored size: 640 Bytes
Contents
module LearnTest module Dependencies class Imagemagick < LearnTest::Dependency def missing? if win? convert = `where convert` else convert = `which convert` end convert.empty? || convert.match(/not found/i) end def install if win? brew = false else brew = `which brew` end if brew.empty? || brew.match(/not found/i) die('Please install ImageMagick'.red) else print_installing('ImageMagick') run_install('brew install imagemagick') end end end end end
Version data entries
27 entries across 27 versions & 1 rubygems