Class: Bridgetown::Commands::Doctor
Class Method Summary
collapse
Instance Method Summary
collapse
extended
summary
#configuration_with_overrides, included
Class Method Details
.banner ⇒ Object
14
15
16
|
# File 'lib/bridgetown-core/commands/doctor.rb', line 14
def self.banner
"bridgetown doctor [options]"
end
|
Instance Method Details
#doctor ⇒ Object
19
20
21
22
23
24
25
26
27
28
29
30
|
# File 'lib/bridgetown-core/commands/doctor.rb', line 19
def doctor
site = Bridgetown::Site.new(configuration_with_overrides(options))
site.reset
site.read
site.generate
if healthy?(site)
Bridgetown.logger.info "Your test results", "are in. Everything looks fine."
else
abort
end
end
|