Class: Guard::DoubleDoc
- Includes:
- Rake::DSL
- Defined in:
- lib/guard/double_doc.rb
Direct Known Subclasses
Instance Method Summary collapse
- #reload ⇒ Object
- #run_all ⇒ Object
- #run_on_change(paths) ⇒ Object
- #run_rake_task ⇒ Object
- #start ⇒ Object
Instance Method Details
#reload ⇒ Object
14 15 16 17 |
# File 'lib/guard/double_doc.rb', line 14 def reload stop start end |
#run_all ⇒ Object
19 20 21 |
# File 'lib/guard/double_doc.rb', line 19 def run_all run_rake_task end |
#run_on_change(paths) ⇒ Object
23 24 25 |
# File 'lib/guard/double_doc.rb', line 23 def run_on_change(paths) run_rake_task end |
#run_rake_task ⇒ Object
27 28 29 30 31 |
# File 'lib/guard/double_doc.rb', line 27 def run_rake_task UI.info "generating double docs" ::Rake::Task.tasks.each { |t| t.reenable } ::Rake::Task[@options[:rake_task]].invoke end |
#start ⇒ Object
9 10 11 12 |
# File 'lib/guard/double_doc.rb', line 9 def start load 'Rakefile' true end |