Class: LearnTest::Dependencies::Ant
- Inherits:
-
LearnTest::Dependency
- Object
- LearnTest::Dependency
- LearnTest::Dependencies::Ant
- Defined in:
- lib/learn_test/dependencies/ant.rb
Instance Attribute Summary
Attributes inherited from LearnTest::Dependency
Instance Method Summary collapse
Methods inherited from LearnTest::Dependency
#die, #execute, #initialize, #mac?, #print_installing, #run_install
Constructor Details
This class inherits a constructor from LearnTest::Dependency
Instance Method Details
#install ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/learn_test/dependencies/ant.rb', line 8 def install 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 |
#missing? ⇒ Boolean
4 5 6 |
# File 'lib/learn_test/dependencies/ant.rb', line 4 def missing? `which ant`.empty? end |