Sha256: 79db65b31a4eebc5aaee2f5b676a0303ab7418d2de81a0cfb3d917515a248c7f
Contents?: true
Size: 1.17 KB
Versions: 2
Compression:
Stored size: 1.17 KB
Contents
Dir.glob("#{__dir__}/*.rb").each { |file| require file } Dir.glob("#{__dir__}/validator/*.rb").each { |file| require file } Dir.glob("#{__dir__}/brand/*.rb").each { |file| require file } Dir.glob("#{__dir__}/../../.solara/core/brands/*.rb").each { |file| require file } class DoctorManager def initialize end def visit_brands(brand_keys = [], print_logs: true) Solara.logger.header("Brand Doctor") ensure_initialized! BrandDoctor.new.visit(brand_keys, print_logs: print_logs) end def visit_project! Solara.logger.header("Project Doctor") Solara.logger.start_step("Project Health Check") ensure_initialized! ProjectDoctor.new.visit Solara.logger.end_step("Project Health Check") end private def ensure_initialized! brands = FilePath.brands brands_list = FilePath.brands_list platform = SolaraSettingsManager.instance.platform unless File.exist?(brands) && File.exist?(brands_list) && !platform.nil? && !platform.empty? Solara.logger.error("Solara is not initialized here. Please run 'solara init' to initialize.") exit 1 end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
solara-0.2.0 | solara/lib/core/doctor/doctor_manager.rb |
solara-0.1.0 | solara/lib/core/doctor/doctor_manager.rb |