Sha256: f395dc5fad1ed811848f60cabd955a670077f4e1cbf6fece33156e57257515e4
Contents?: true
Size: 727 Bytes
Versions: 27
Compression:
Stored size: 727 Bytes
Contents
module LearnTest module Dependencies class Ant < LearnTest::Dependency def missing? if win? `where ant`.empty? else `which ant`.empty? end end def install if win? || !mac? die('Please install Ant.') else puts('Checking for homebrew...'.green) die('You must have Homebrew installed') unless brew_installed? puts('Updating brew...'.green) print_installing('ant') run_install('brew install ant') end end def die(message) puts message exit end private def brew_installed? !`which brew`.empty? end end end end
Version data entries
27 entries across 27 versions & 1 rubygems