Class: RailsCTO::Doctor

Inherits:
Object
  • Object
show all
Includes:
Reporter
Defined in:
lib/rails_cto/doctor.rb

Instance Method Summary collapse

Constructor Details

#initialize(root, shell: nil) ⇒ Doctor

Returns a new instance of Doctor.



11
12
13
14
15
16
17
# File 'lib/rails_cto/doctor.rb', line 11

def initialize(root, shell: nil)
  @root    = root
  @shell   = shell || Thor::Shell::Basic.new
  @ok      = []
  @missing = []
  @drifted = []
end

Instance Method Details

#runObject



19
20
21
22
23
24
25
# File 'lib/rails_cto/doctor.rb', line 19

def run
  check_templates
  check_test_helper
  check_claude_md
  render_report
  clean?
end