Class: MrHyde::Commands::Serve

Inherits:
MrHyde::Command show all
Defined in:
lib/mr_hyde/commands/serve.rb

Class Method Summary collapse

Methods inherited from MrHyde::Command

configuration, configuration_from_options

Class Method Details

.process(opts = {}) ⇒ Object



14
15
16
17
18
19
20
21
22
# 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