module Bunto::Commands::Watch

Public Instance Methods

init_with_program(prog) click to toggle source
# File lib/bunto/commands/watch.rb, line 6
def init_with_program(prog)
end
process(options) click to toggle source

Build your bunto site Continuously watch if `watch` is set to true in the config.

# File lib/bunto/commands/watch.rb, line 11
def process(options)
  Bunto.logger.log_level = :error if options['quiet']
  watch(site, options) if options['watch']
end
watch(_site, options) click to toggle source

Watch for file changes and rebuild the site.

site - A Bunto::Site instance options - A Hash of options passed to the command

Returns nothing.

# File lib/bunto/commands/watch.rb, line 22
def watch(_site, options)
  Bunto::Watcher.watch(options)
end