Module: Bunto::Commands::Watch
Instance Method Summary collapse
- #init_with_program(prog) ⇒ Object
-
#process(options) ⇒ Object
Build your bunto site Continuously watch if ‘watch` is set to true in the config.
-
#watch(_site, options) ⇒ Object
Watch for file changes and rebuild the site.
Instance Method Details
#init_with_program(prog) ⇒ Object
6 7 |
# File 'lib/bunto/commands/watch.rb', line 6 def init_with_program(prog) end |
#process(options) ⇒ Object
Build your bunto site Continuously watch if ‘watch` is set to true in the config.
11 12 13 14 |
# File 'lib/bunto/commands/watch.rb', line 11 def process() Bunto.logger.log_level = :error if ['quiet'] watch(site, ) if ['watch'] end |
#watch(_site, options) ⇒ Object
Watch for file changes and rebuild the site.
site - A Bunto::Site instance options - A Hash of options passed to the command
Returns nothing.
22 23 24 |
# File 'lib/bunto/commands/watch.rb', line 22 def watch(_site, ) Bunto::Watcher.watch() end |