Class: Guard::Rocco

Inherits:
Guard
  • Object
show all
Defined in:
lib/guard/rocco.rb

Instance Method Summary collapse

Constructor Details

#initialize(watchers = [], options = {}) ⇒ Rocco

Returns a new instance of Rocco.



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

def initialize(watchers = [], options = {})
  super

  @options = { :dir => 'doc' }.merge(options)
end

Instance Method Details

#run_allObject



18
19
20
# File 'lib/guard/rocco.rb', line 18

def run_all
  all_paths.each { |path| build(path) }
end

#run_on_change(paths = []) ⇒ Object



22
23
24
# File 'lib/guard/rocco.rb', line 22

def run_on_change(paths = [])
  paths.each { |path| build(path) }
end

#startObject



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

def start
  UI.info "Guard::Rocco is waiting to build docs..."
end