Class: LearnTest::PythonUnittest::PipChecker
- Inherits:
-
Object
- Object
- LearnTest::PythonUnittest::PipChecker
- Defined in:
- lib/learn_test/strategies/python_unittest/requirements_checker.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.check ⇒ Object
40 41 42 |
# File 'lib/learn_test/strategies/python_unittest/requirements_checker.rb', line 40 def self.check new.check end |
Instance Method Details
#check ⇒ Object
44 45 46 47 48 49 |
# File 'lib/learn_test/strategies/python_unittest/requirements_checker.rb', line 44 def check if !pip_installed? puts "Please ensure pip is installed" exit end end |
#pip_installed? ⇒ Boolean
51 52 53 |
# File 'lib/learn_test/strategies/python_unittest/requirements_checker.rb', line 51 def pip_installed? !`which pip`.empty? end |