Class: Guard::Rocco
Instance Method Summary collapse
-
#initialize(watchers = [], options = {}) ⇒ Rocco
constructor
A new instance of Rocco.
- #run_all ⇒ Object
- #run_on_change(paths = []) ⇒ Object
- #start ⇒ Object
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 = [], = {}) super @options = { :dir => 'doc' }.merge() end |
Instance Method Details
#run_all ⇒ Object
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 |
#start ⇒ Object
13 14 15 |
# File 'lib/guard/rocco.rb', line 13 def start UI.info "Guard::Rocco is waiting to build docs..." end |