class MrHyde::Commands::Serve

Public Class Methods

process(opts = {}) click to toggle source
# File lib/mr_hyde/commands/serve.rb, line 14
def process(opts = {})
  opts = MrHyde.configuration(opts)
  unless File.exist? MrHyde.destination
    MrHyde.logger.abort_with "Cannot start server: There is no built content"
  end
  ENV['JEKYLL_LOG_LEVEL'] = 'info'
  Jekyll.logger = Stevenson.new
  Jekyll::Commands::Serve.process opts
end