Method: Jekyll::Commands::Serve.process

Defined in:
lib/jekyll/commands/serve.rb

.process(opts) ⇒ Object



92
93
94
95
96
97
98
99
100
101
102
103
# File 'lib/jekyll/commands/serve.rb', line 92

def process(opts)
  opts = configuration_from_options(opts)
  destination = opts["destination"]
  if opts["livereload"]
    opts["livereload_port"] ||= LIVERELOAD_PORT
    validate_options(opts)
    register_reload_hooks(opts)
  end
  setup(destination)

  start_up_webrick(opts, destination)
end