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.
8 9 10 11 12 |
# File 'lib/guard/rocco.rb', line 8 def initialize(watchers = [], = {}) super @options = { :dir => 'doc' }.merge() end |
Instance Method Details
#run_all ⇒ Object
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 |
#start ⇒ Object
14 15 16 |
# File 'lib/guard/rocco.rb', line 14 def start UI.info "Guard::Rocco is waiting to build docs..." end |