Class: UberDoc::DoctorTask
- Inherits:
-
Task
- Object
- Task
- UberDoc::DoctorTask
show all
- Defined in:
- lib/uberdoc/tasks/doctor_task.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Task
#initialize, known_tasks
Constructor Details
This class inherits a constructor from UberDoc::Task
Class Method Details
.should_run?(options) ⇒ Boolean
8
9
10
|
# File 'lib/uberdoc/tasks/doctor_task.rb', line 8
def self.should_run?(options)
options.doctor
end
|
Instance Method Details
#check_doxygen ⇒ Object
12
13
14
15
16
17
18
19
|
# File 'lib/uberdoc/tasks/doctor_task.rb', line 12
def check_doxygen
out = UberDoc::Util::execute_command("which doxygen", @options.verbose)
if not out.match("doxygen")
puts "doxygen - Could not find doxygen on your system. Install it using your package manager or from doxygen.org"
end
end
|
21
22
23
24
25
26
27
28
29
|
# File 'lib/uberdoc/tasks/doctor_task.rb', line 21
def perform
check_doxygen
puts "All checks performed"
end
|