Class: Flare::DoctorCommand

Inherits:
Object
  • Object
show all
Includes:
CLI::Output
Defined in:
lib/flare/cli/doctor_command.rb

Instance Method Summary collapse

Instance Method Details

#runObject



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/flare/cli/doctor_command.rb', line 9

def run
  puts bold("Flare Doctor")
  puts

  results = []
  results << check_initializer
  results << check_key
  results << check_gitignore
  results << check_database if spans_expected?

  puts
  if results.all?
    puts green("Everything looks good!")
  else
    puts "Run #{bold("flare setup")} to fix issues."
  end
end