Class: Guard::DoubleDoc

Inherits:
Guard
  • Object
show all
Includes:
Rake::DSL
Defined in:
lib/guard/double_doc.rb

Direct Known Subclasses

Doubledoc

Instance Method Summary collapse

Instance Method Details

#reloadObject



14
15
16
17
# File 'lib/guard/double_doc.rb', line 14

def reload
  stop
  start
end

#run_allObject



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_taskObject



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

#startObject



9
10
11
12
# File 'lib/guard/double_doc.rb', line 9

def start
  load 'Rakefile'
  true
end