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.



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

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

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

Instance Method Details

#run_allObject



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

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

#run_on_change(paths = []) ⇒ Object



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

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

#startObject



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

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