Use more efficient merging

This commit is contained in:
Christopher Nicotera 2013-08-22 11:27:30 -04:00
parent a721dae0a8
commit 78df4ddb70
1 changed files with 2 additions and 4 deletions

View File

@ -121,12 +121,10 @@ command :docs do |c|
c.option '-u', '--host [HOST]', 'Host to bind to' c.option '-u', '--host [HOST]', 'Host to bind to'
c.action do |args, options| c.action do |args, options|
options = normalize_options(options.__hash__) options = Jekyll.configuration(normalize_options(options.__hash__).merge!({
options = options.merge({
'source' => File.expand_path("../site", File.dirname(__FILE__)), 'source' => File.expand_path("../site", File.dirname(__FILE__)),
'destination' => File.expand_path("../site/_site", File.dirname(__FILE__)) 'destination' => File.expand_path("../site/_site", File.dirname(__FILE__))
}) }))
options = Jekyll.configuration(options)
puts options puts options
Jekyll::Commands::Build.process(options) Jekyll::Commands::Build.process(options)
Jekyll::Commands::Serve.process(options) Jekyll::Commands::Serve.process(options)