Module: Jekyll::Commands::Watch

Extended by:
Watch
Included in:
Watch
Defined in:
lib/jekyll/commands/watch.rb

Instance Method Summary collapse

Instance Method Details

#init_with_program(prog) ⇒ Object



8
# File 'lib/jekyll/commands/watch.rb', line 8

def init_with_program(prog); end

#process(options) ⇒ Object

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



12
13
14
15
# File 'lib/jekyll/commands/watch.rb', line 12

def process(options)
  Jekyll.logger.log_level = :error if options["quiet"]
  Jekyll::Watcher.watch(options) if options["watch"]
end