Class: Mxrb::Doctor
- Inherits:
-
Object
- Object
- Mxrb::Doctor
- Defined in:
- lib/mxrb/doctor.rb
Overview
Diagnoses project structure and optional external toolchain availability.
Instance Method Summary collapse
-
#initialize(root = Dir.pwd, runner: Open3.method(:capture3)) ⇒ Doctor
constructor
A new instance of Doctor.
- #run ⇒ Object
Constructor Details
Instance Method Details
#run ⇒ Object
23 24 25 26 27 28 29 |
# File 'lib/mxrb/doctor.rb', line 23 def run DoctorReport.new(@root, [ ruby_check, project_check, modules_check, aggregators_check, mpr_check, executable_check('bundle'), executable_check('java'), executable_check('docker', warning: true), runtime_check ].freeze) end |